File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/jenkinsci/plugins/docker/workflow Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -220,8 +220,8 @@ private static class Decorator extends LauncherDecorator implements Serializable
220
220
this .envHost = Util .mapToEnv (envHost );
221
221
this .ws = ws ;
222
222
this .toolName = toolName ;
223
- this .hasEnv = dockerVersion .compareTo (new VersionNumber ("1.13.0" )) >= 0 ;
224
- this .hasWorkdir = dockerVersion .compareTo (new VersionNumber ("17.12" )) >= 0 ;
223
+ this .hasEnv = dockerVersion != null && dockerVersion .compareTo (new VersionNumber ("1.13.0" )) >= 0 ;
224
+ this .hasWorkdir = dockerVersion != null && dockerVersion .compareTo (new VersionNumber ("17.12" )) >= 0 ;
225
225
}
226
226
227
227
@ Override public Launcher decorate (final Launcher launcher , final Node node ) {
You can’t perform that action at this time.
0 commit comments