jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.44k stars 612 forks source link

Fixed NPE error in AbstractWebHookTriggerHandler.java #1617

Closed AniketNS closed 7 months ago

AniketNS commented 7 months ago

Fixes https://github.com/jenkinsci/gitlab-plugin/issues/1123 NPE error

I think the job.getProperty(GitLabConnectionProperty.class).getClient(); expression creates the NPE error. That's why I've checked the connectionProperty expression first.