Skip to content

Commit

Permalink
check for null to make findbugs happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ndeloof committed Dec 8, 2017
1 parent bf5a330 commit ba96994
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -220,8 +220,8 @@ private static class Decorator extends LauncherDecorator implements Serializable
this.envHost = Util.mapToEnv(envHost);
this.ws = ws;
this.toolName = toolName;
this.hasEnv = dockerVersion.compareTo(new VersionNumber("1.13.0")) >= 0;
this.hasWorkdir = dockerVersion.compareTo(new VersionNumber("17.12")) >= 0;
this.hasEnv = dockerVersion != null && dockerVersion.compareTo(new VersionNumber("1.13.0")) >= 0;
this.hasWorkdir = dockerVersion != null && dockerVersion.compareTo(new VersionNumber("17.12")) >= 0;
}

@Override public Launcher decorate(final Launcher launcher, final Node node) {
Expand Down

0 comments on commit ba96994

Please sign in to comment.