-
Bug
-
Resolution: Fixed
-
Minor
-
None
Build-pipeline is generating a "Null Pointer Exception" because params.getParameterDefinitionNames() is not checked if it is null in the class BuildForm.java
if (params != null) { for (String p : params.getParameterDefinitionNames()) { paramList.add(p); } }
As consequence, the following stack trace is launched and the instance of jenkins goes down
Caused by: java.lang.NullPointerException\ at hudson.model.ParametersDefinitionProperty$1.size(ParametersDefinitionProperty.java:105)\ at java.util.AbstractList$Itr.hasNext(AbstractList.java:351)\ at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm.<init>(BuildForm.java:102)\ at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm.<init>(BuildForm.java:93)\ at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm.<init>(BuildForm.java:93)\ at au.com.centrumsystems.hudson.plugin.buildpipeline.BuildForm.<init>(BuildForm.java:74)\
- links to