NPE if processWorkspaceBeforeDeletion method returns false

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: other
    • None
    • Environment:
      Platform: All, OS: All

      I'm trying to veto the workspace cleanup process by returning false from the
      PerforceSCM.processWorkspaceBeforeDeletion(AbstractProject<?,?> project,
      FilePath workspace, Node node) method. If I do this I get the following stack
      trace:
      INFO: Started Workspace clean-up
      Exception in thread "Workspace clean-up thread" java.lang.NullPointerException
      at hudson.model.WorkspaceCleanupThread.process(WorkspaceCleanupThread.java:114)
      at hudson.model.WorkspaceCleanupThread.execute(WorkspaceCleanupThread.java:43)
      at hudson.model.PeriodicWork$1.run(PeriodicWork.java:41)
      at java.lang.Thread.run(Thread.java:619)

      If I return true then the workspace cleanup seems to work. I'm triggering a
      workspace cleanup via http://server/hudson/workspaceCleanup

            Assignee:
            Kohsuke Kawaguchi
            Reporter:
            thepner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: