Merge pull request #767 from MateuszJajeGP/master

Fix NPE in GitLabPushTrigger
This commit is contained in:
Owen Mehegan 2018-05-26 13:09:50 -04:00 committed by GitHub
commit 18462ef357
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -454,6 +454,9 @@ public class GitLabPushTrigger extends Trigger<Job<?, ?>> {
// executes when the Trigger receives a pipeline event // executes when the Trigger receives a pipeline event
public void onPost(final PipelineHook hook) { public void onPost(final PipelineHook hook) {
if (pipelineTriggerHandler == null) {
initializeTriggerHandler();
}
pipelineTriggerHandler.handle(job, hook, ciSkip, branchFilter, mergeRequestLabelFilter); pipelineTriggerHandler.handle(job, hook, ciSkip, branchFilter, mergeRequestLabelFilter);
} }