From d7fae58cc712674f0f0fe5aa84f5578396afbcad Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Wed, 15 Apr 2020 15:36:17 +0000 Subject: [PATCH] fix(pubsub): prevent NPE when retrying a pipeline execution with (#8172) (#8174) a pubsub trigger (cherry picked from commit 5d952716b1bc21f3b55733f8172f15fa15c5b68c) Co-authored-by: Daniel Peach --- .../modules/core/src/pipeline/manualExecution/Triggers.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/modules/core/src/pipeline/manualExecution/Triggers.tsx b/app/scripts/modules/core/src/pipeline/manualExecution/Triggers.tsx index ab3f2de51dc..2dd746ec4b1 100644 --- a/app/scripts/modules/core/src/pipeline/manualExecution/Triggers.tsx +++ b/app/scripts/modules/core/src/pipeline/manualExecution/Triggers.tsx @@ -34,7 +34,7 @@ export class Triggers extends React.Component { }; private updateTriggerDescription = (trigger: ITrigger) => { - if (trigger && !trigger.description) { + if (trigger && !trigger.description && Registry.pipeline.hasManualExecutionComponentForTriggerType(trigger.type)) { Observable.fromPromise( (Registry.pipeline.getManualExecutionComponentForTriggerType(trigger.type) as any).formatLabel(trigger), )