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

NullPointerException from AbstractBuild$AbstractBuildExecution.decideWorkspace

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • 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.

          [JENKINS-47455] NullPointerException from AbstractBuild$AbstractBuildExecution.decideWorkspace

          Jesse Glick created issue -
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-38527 [ JENKINS-38527 ]
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "PR 3090 (Web Link)" [ 17891 ]
          Jesse Glick made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Jesse Glick made changes -
          Link New: This issue depends on JENKINS-36716 [ JENKINS-36716 ]
          Jesse Glick made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Resolved [ 5 ]
          James Dumay made changes -
          Remote Link New: This issue links to "CloudBees Internal OSS-2529 (Web Link)" [ 18262 ]

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

              Created:
              Updated:
              Resolved: