-
Bug
-
Resolution: Duplicate
-
Minor
-
None
If you've got a null parameter value, and you try to do cpsScript.getProperty("params"), you get the following:
java.lang.NullPointerException at org.jenkinsci.plugins.workflow.cps.persistence.IteratorHack.writeReplace(IteratorHack.java:52) at org.jenkinsci.plugins.workflow.cps.ParamsVariable.addValue(ParamsVariable.java:88) at org.jenkinsci.plugins.workflow.cps.ParamsVariable.getValue(ParamsVariable.java:75) at org.jenkinsci.plugins.workflow.cps.CpsScript.getProperty(CpsScript.java:121) ...
So that's not ideal. =)
- duplicates
-
JENKINS-42367 NPE from IteratorHack.writeReplace via ParamsVariable.getValue
- Resolved