NullPointerException when deleting job

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      I'm using the CLI to delete some jobs, and I've noticed that sometimes I receive a NullPointerException when deleting.

      java.lang.NullPointerException
      	at hudson.model.queue.Executables.getParentOf(Executables.java:44)
      	at hudson.model.AbstractItem.delete(AbstractItem.java:625)
      	at hudson.model.Job.delete(Job.java:669)
      	at hudson.cli.DeleteJobCommand.run(DeleteJobCommand.java:73)
      	at hudson.cli.CLICommand.main(CLICommand.java:274)
      	at org.jenkinsci.main.modules.sshd.CLICommandAdapter$1.run(CLICommandAdapter.java:37)
      	at org.jenkinsci.main.modules.sshd.AsynchronousCommand$1.run(AsynchronousCommand.java:112)
      	at java.lang.Thread.run(Thread.java:745)

      I only see this in Jenkins 2.55 and not 2.54 and judging by the stack trace, my guess is that the error is related to this change: https://github.com/jenkinsci/jenkins/commit/52a1a1035fa71a2e023e93c083a626898bcb0d47

       

            Assignee:
            Oleg Nenashev
            Reporter:
            Brian Krische
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: