Skip to content

Commit

Permalink
JENKINS-14483 Remaining Xvfb processes in matrix jobs
Browse files Browse the repository at this point in the history
fix NPE with Environment Injector Plugin installed
  • Loading branch information
Zoran Regvart committed Sep 19, 2012
1 parent a53ce0e commit 81e7a1f
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -241,9 +241,11 @@ private XvfbEnvironment launchXvfb(@SuppressWarnings("rawtypes") final AbstractB
public void makeBuildVariables(@SuppressWarnings("rawtypes") final AbstractBuild build, final Map<String, String> variables) {
final XvfbEnvironment xvfbEnvironment = build.getAction(XvfbEnvironment.class);

final int displayNameUsed = xvfbEnvironment.getDisplayNameUsed();
if (xvfbEnvironment != null) {
final int displayNameUsed = xvfbEnvironment.getDisplayNameUsed();

variables.put("DISPLAY", ":" + displayNameUsed);
variables.put("DISPLAY", ":" + displayNameUsed);
}
}

@Override
Expand Down

0 comments on commit 81e7a1f

Please sign in to comment.