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

          mksmith Matthew Smith created issue -
          mksmith Matthew Smith made changes -
          Field Original Value New Value
          Description I see the following error frequently in /var/log/jenkins/jenkins.log

           
          {code:java}
          Aug 15, 2017 10:27:06 PM net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition getDefaultParameterValue
          SEVERE: nullUnexpected error!
          java.lang.NullPointerException{code}
          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. 
          I see the following error frequently in /var/log/jenkins/jenkins.log

           
          {code:java}
          Aug 15, 2017 10:27:06 PM net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition getDefaultParameterValue
          SEVERE: nullUnexpected error!
          java.lang.NullPointerException{code}
          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
          mksmith Matthew Smith made changes -
          Environment Jenkins 2.46 Jenkins 2.46
          Git Parameter Plug-in 2.4.5
          Git Plugin 3.3.0
          Git Client plugin 2.4.5
          klimas7 Boguslaw Klimas made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          klimas7 Boguslaw Klimas made changes -
          Resolution Fixed [ 1 ]
          Status In Progress [ 3 ] Resolved [ 5 ]

            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: