Skip to content

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

Closed

Description

@jenkins-infra-bot

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.


Originally reported by jglick, imported from: NullPointerException from AbstractBuild$AbstractBuildExecution.decideWorkspace
  • assignee: jglick
  • status: Resolved
  • priority: Minor
  • component(s): core
  • label(s): diagnostics, slave
  • resolution: Fixed
  • resolved: 2017-10-23T12:58:01+00:00
  • votes: 0
  • watchers: 1
  • imported: 2025-11-24
Raw content of original issue

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.

  • environment: 2.73.1

Activity

  1. jenkins-infra-bot commented on Oct 16, 2017

    @jenkins-infra-bot
    Author
  2. jenkins-infra-bot commented on Oct 16, 2017

    @jenkins-infra-bot
    Author
    jglick:

    Seems to coincide with JENKINS-38527.

  3. jenkins-infra-bot commented on Oct 17, 2017

    @jenkins-infra-bot
    Author
    jglick:

    Dealing with JENKINS-36716 would have caught this sooner.

  4. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original depends_on from Jira: JENKINS-36716]

  5. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions