Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: core
-
Labels:None
-
Similar Issues:
Description
On a fresh Jenkins (1.509.1 LTS, Windowss 7 x64, also on Ubuntu) ticking Tools Location but saving/applying without filling the form brings up error popup / throws exception.
Steps to reproduce:
1. Install new Jenkins
2. Go to Configuring, tick Tools Location
3. Click save/apply
The error seems to come only when no tools are installed
Attachments
Issue Links
- is related to
-
JENKINS-22075 NPE in CustomToolInstallWrapper.decorateLauncher()
-
- Resolved
-
Hi Viktor
Thanks for the report, I confirm the same behavior on MAC OS X (Lion). However the steps to reproduce the error were slightly different:
1. Install new Jenkins
2. Go to Configuring (e.g. http://localhost:8080/jenkins/configure), tick Tools Locations
3. Hit the add button under Tool Locations, but let the fields empty!
4. Click save/apply
Then I get a RuntimeException:
javax.servlet.ServletException: java.lang.RuntimeException: Failed to instantiate class hudson.tools.ToolLocationNodeProperty from {"locations":{"key":"","home":""}}
at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:719)