diff --git a/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java b/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java index f77e2b7..1075b41 100644 --- a/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java +++ b/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java @@ -454,6 +454,9 @@ public class GitLabPushTrigger extends Trigger> { // executes when the Trigger receives a pipeline event public void onPost(final PipelineHook hook) { + if (pipelineTriggerHandler == null) { + initializeTriggerHandler(); + } pipelineTriggerHandler.handle(job, hook, ciSkip, branchFilter, mergeRequestLabelFilter); }