Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-23267

NullPointerException in XvfbBuildWrapper.setUp when configured without node label restrictions

      I get the following traceback when running a job with configured xvfb plugin and no node labels:

      FATAL: null
      java.lang.NullPointerException
      at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.setUp(XvfbBuildWrapper.java:568)
      at hudson.model.Build$BuildExecution.doRun(Build.java:153)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518)
      at hudson.model.Run.execute(Run.java:1706)
      at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      at hudson.model.ResourceController.execute(ResourceController.java:88)
      at hudson.model.Executor.run(Executor.java:231)

      The line reads:

      if (assignedLabels != null || assignedLabels.trim().isEmpty()) {

      shouldn't that be && ?

      A workaround is adding a label (i.e. master)

          [JENKINS-23267] NullPointerException in XvfbBuildWrapper.setUp when configured without node label restrictions

          Alexander Clausen created issue -
          Alexander Clausen made changes -
          Description Original: I get the following traceback when running a job with configured xvfb plugin:

          FATAL: null
          java.lang.NullPointerException
          at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.setUp(XvfbBuildWrapper.java:568)
          at hudson.model.Build$BuildExecution.doRun(Build.java:153)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518)
          at hudson.model.Run.execute(Run.java:1706)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:231)

          The line reads:

          if (assignedLabels != null || assignedLabels.trim().isEmpty()) {

          shouldn't that be && ?
          New: I get the following traceback when running a job with configured xvfb plugin and no node labels:

          FATAL: null
          java.lang.NullPointerException
          at org.jenkinsci.plugins.xvfb.XvfbBuildWrapper.setUp(XvfbBuildWrapper.java:568)
          at hudson.model.Build$BuildExecution.doRun(Build.java:153)
          at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:518)
          at hudson.model.Run.execute(Run.java:1706)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:88)
          at hudson.model.Executor.run(Executor.java:231)

          The line reads:

          if (assignedLabels != null || assignedLabels.trim().isEmpty()) {

          shouldn't that be && ?

          A workaround is adding a label (i.e. master)
          Summary Original: NullPointerException in XvfbBuildWrapper.setUp New: NullPointerException in XvfbBuildWrapper.setUp when configured without node label restrictions
          zregvart made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          zregvart made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 155830 ] New: JNJira + In-Review [ 207751 ]

            zregvart zregvart
            sk1p Alexander Clausen
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: