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

NullPointerException if Workspace does not exist

XMLWordPrintable

      Line 178 in MultiJobBuilder.java can trigger an NPE because lastBuild.getWorkspace() can return null (namely if the workspace has been deleted meanwhile). All my jobs delete their workspace at the end of the build...

      Additionally, the check is bogus anyway. Not all SCMs require a workspace to exist to detect if there are changes. If they do, then subjob.poll() should return true anyway.

            Unassigned Unassigned
            rk R K
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: