NPE in Jenkins 1.595

Hi there,
After upgrading to Jenkins 1.595, I noticed that the pre-launch would cause a NPE when launching the node through the Computer / Node configuration i.e. http://jenkins.example.com/computer/jenkins-ubuntu/ and than click on the "Launch Slave Agent button".
Basically Jenkins.MasterComputer.currentComputer() returns null. The comment on #currentComputer: "...This method only works when called during a build ..." hints that this might happen, however until the recent upgrade I've never seen it and I have started nodes outside the context of a build through the node configuration pages ...
Regards,
Urs


Please use Jenkins.getInstance() as Node instead of null - then you can probably also remove a few null checks.