NPE when getting params object with a null parameter

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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. =)

            Assignee:
            Unassigned
            Reporter:
            Andrew Bayer
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: