-
Bug
-
Resolution: Fixed
-
Minor
$ sudo "/usr/lib/jvm/java-1.8.0/bin/java" -jar "/tmp/kitchen/cache/jenkins-cli.jar" -s http://aws-instance:8080 -i "/tmp/kitchen/cache/jenkins-key" restart ERROR: Unexpected exception occurred while performing restart command. java.lang.NullPointerException at jenkins.model.Jenkins.doRestart(Jenkins.java:4116) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
https://github.com/jenkinsci/jenkins/blob/stable-2.46/core/src/main/java/jenkins/model/Jenkins.java#L4116
The server has "StaplerResponse rsp == null".
The issue does not appear with safe-restart, as nullity is checked on all variables
https://github.com/jenkinsci/jenkins/blob/stable-2.46/core/src/main/java/jenkins/model/Jenkins.java#L4127
- is duplicated by
-
JENKINS-44080 NullPointerException by restarting of Jenkins via CLI
- Resolved