Skip to content
Permalink
Browse files
JENKINS-23267 NullPointerException in XvfbBuildWrapper.setUp when
configured without node label restrictions
  • Loading branch information
Zoran Regvart committed Jun 2, 2014
1 parent 00c95d6 commit b6573ff15938ea035fd9d9b29bb13cfd16d16367
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/org/jenkinsci/plugins/xvfb/XvfbBuildWrapper.java
@@ -565,7 +565,7 @@ public void makeBuildVariables(@SuppressWarnings("rawtypes") final AbstractBuild

@Override
public Environment setUp(@SuppressWarnings("rawtypes") final AbstractBuild build, final Launcher launcher, final BuildListener listener) throws IOException, InterruptedException {
if (assignedLabels != null || assignedLabels.trim().isEmpty()) {
if (assignedLabels != null && !assignedLabels.trim().isEmpty()) {
final Label label;
try {
label = Label.parseExpression(assignedLabels);

0 comments on commit b6573ff

Please sign in to comment.