Observed an exception trying to remove a slave which failed to launch:
java.lang.NullPointerException jenkins.model.Jenkins.removeNode(Jenkins.java:1645) hudson.model.Computer.doDoDelete(Computer.java:1131)
Easy to fix the NPE; @CheckForNull is being ignored here. Unclear whether fixing the NPE would really help the original problem which was apparently a zombie slave of some kind.
Code changed in jenkins
User: Jesse Glick
Path:
changelog.html
core/src/main/java/hudson/model/Computer.java
core/src/main/java/hudson/model/labels/LabelAtom.java
core/src/main/java/jenkins/model/Jenkins.java
http://jenkins-ci.org/commit/jenkins/300bfc463bc4377d6124fa538f64ff6e2b8d7813
Log:
[FIXED JENKINS-15369] NPE deleting a slave.
Compare: https://github.com/jenkinsci/jenkins/compare/202903aaef6e...300bfc463bc4