NullPointerException from AbstractBuild$AbstractBuildExecution.decideWorkspace

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • Component/s: core
    • Environment:
      2.73.1

      A user of the vSphere plugin reports this exception:

      java.lang.NullPointerException
      	at hudson.model.AbstractBuild$AbstractBuildExecution.decideWorkspace(AbstractBuild.java:440)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:480)
      	at hudson.model.Run.execute(Run.java:1737)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:419)
      

      The code in question is apparently vulnerable to a null return value from getRootPath, perhaps due to race conditions involving an agent going offline right as a build is starting.

            Assignee:
            Jesse Glick
            Reporter:
            Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: