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

Null Pointer exception when no default parameter provided

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I see the following error frequently in /var/log/jenkins/jenkins.log

       

      Aug 15, 2017 10:27:06 PM net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition getDefaultParameterValue
      SEVERE: nullUnexpected error!
      java.lang.NullPointerException

      I assume this is occurring because I did not set a default value for the Git Parameter on many jobs. A default value should not be required, or a missing default value should at least be handled better. 

       

      The exception is probably being thrown here:

      https://github.com/jenkinsci/git-parameter-plugin/blob/5b14c821d41e896f1f0b619c4d1daee18f716785/src/main/java/net/uaznia/lukanus/hudson/plugins/gitparameter/GitParameterDefinition.java#L150

        Attachments

          Activity

            People

            Assignee:
            klimas7 Boguslaw Klimas
            Reporter:
            mksmith Matthew Smith
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: