jenkinsci/jobConfigHistory-plugin — pull request #39 by williambernardet (2014-11-10 11:04:56+00:00)
Title: NPE on ComputerHistoryListener.onConfigurationChange

Fix proposal for NPE in ComputerHistoryListener.onConfigurationChange method. Our jenkins faced some restart issue with the following stacktrace. Since initializing the list with getNodes might be unsafe as Jenkins is initializing. Better to ensure the nodes list is defined on the first run (if nodes is null, then get the initial list of nodes).

hudson.util.HudsonFailedToLoad: java.lang.NullPointerException
at hudson.WebAppMain$3.run(WebAppMain.java:234)
Caused by: java.lang.NullPointerException
at
hudson.plugins.jobConfigHistory.ComputerHistoryListener.onConfigurationChange(ComputerHistoryListener.java:29)
at
hudson.model.AbstractCIBase.updateComputerList(AbstractCIBase.java:195)
at jenkins.model.Jenkins.updateComputerList(Jenkins.java:1220)
at jenkins.model.Jenkins.(Jenkins.java:852)
at hudson.model.Hudson.(Hudson.java:82)
at hudson.model.Hudson.(Hudson.java:78)
at hudson.WebAppMain$3.run(WebAppMain.java:222)