Skip to content
Snippets Groups Projects
Commit 1fa8ff04 authored by Christian Wulf's avatar Christian Wulf
Browse files

added null check

parent 93296b5b
No related branches found
No related tags found
No related merge requests found
#FindBugs User Preferences #FindBugs User Preferences
#Mon Jul 27 14:55:35 CEST 2015 #Thu Jul 30 13:22:16 CEST 2015
detector_threshold=2 detector_threshold=2
effort=max effort=max
excludefilter0=.fbExcludeFilterFile|true excludefilter0=.fbExcludeFilterFile|true
......
...@@ -29,6 +29,10 @@ abstract class AbstractRunnableStage implements Runnable { ...@@ -29,6 +29,10 @@ abstract class AbstractRunnableStage implements Runnable {
protected final Logger logger; protected final Logger logger;
public AbstractRunnableStage(final Stage stage) { public AbstractRunnableStage(final Stage stage) {
if (stage == null) {
throw new IllegalArgumentException("Argument stage may not be null");
}
this.stage = stage; this.stage = stage;
this.logger = LoggerFactory.getLogger(stage.getClass()); this.logger = LoggerFactory.getLogger(stage.getClass());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment