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

Git Plugin 2.0.2 and later NullPointerException onNotifyCommit

      I am experiencing Internal Server Errors due to NullPointerException when triggering Git Plugin onNotifyCommit through the "Bitbucket Git Notify Commit" Hook Plugin.

      I am using Git Plugin 2.0.3 and the Error occurs on Line 271 of https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/GitStatus.java

      The offending Code was introduced into Jenkins Git Plugin in commit https://github.com/jenkinsci/git-plugin/commit/ec521564afcca7069403d48e51591f0251c0f98b

      I believe this is an error in the Git Plugin since the Hook was still working in 2.0.1 and the trigger.run() method omits a NullPointer check, while this is done for other uses of trigger in the same method.

            ndeloof Nicolas De Loof
            snu Stefan Nuernberger
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: