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

Null Pointer exception when no default parameter provided

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • git-parameter-plugin
    • Jenkins 2.46
      Git Parameter Plug-in 2.4.5
      Git Plugin 3.3.0
      Git Client plugin 2.4.5

      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

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

              Created:
              Updated:
              Resolved: