NPE from CpsCallableInvocation.<init> when passing null to one-arg method

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

XMLWordPrintable

      I was observing the following behavior:

      This works:

      node("master") {
          testMethod(null, new Object())
      }
      
      def testMethod(myparameter,mysecondparameter) {
       echo "test"
      }
      

      This fails:

      node("master") {
          testMethod(null)
      }
      
      def testMethod(myparameter) {
       echo "test"
      }
      

      I was expecting that it should be possible to pass in a single parameter with a null value.

            Assignee:
            Jesse Glick
            Reporter:
            Bastian Echterhoelter
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: