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

NullPointerException when deleting job

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • core
    • Jenkins 2.55

      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

       

            oleg_nenashev Oleg Nenashev
            krische Brian Krische
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: