-
Bug
-
Resolution: Fixed
-
Critical
-
None
-
Platform: All, OS: Windows XP
On Windows you get an NPE in the Configuration screen; I tracked this down to
hudson.util.FormFieldValidator line 368, where the system attempts to retrieve
the PATH environment variable. Unfortunately this is case sensitive, and many
Windows installations store this variable under the value Path - so it returns
null, resulting in the NPE.
Starting 1.162, EnvVars.masterEnvVars handles case insensitive look up
correctly, so this should no longer be an issue. I'm assuming that you've been
using an older version of Hudson.
That said, technically speaking it's possible that PATH/Path is not set at all,
regardless of upper/lower convention, so I added null check too. This change
will be in 1.165.