Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43511

NPE when getting params object with a null parameter

    Details

    • Similar Issues:

      Description

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

        Attachments

          Issue Links

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                Unassigned
                Reporter:
                abayer Andrew Bayer
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: