Skip to content

Commit

Permalink
JENKINS-23267 NullPointerException in XvfbBuildWrapper.setUp when
Browse files Browse the repository at this point in the history
configured without node label restrictions
  • Loading branch information
Zoran Regvart committed Jun 2, 2014
1 parent 00c95d6 commit b6573ff
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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);
Expand Down

0 comments on commit b6573ff

Please sign in to comment.