From 5d952716b1bc21f3b55733f8172f15fa15c5b68c Mon Sep 17 00:00:00 2001 From: Daniel Peach Date: Wed, 15 Apr 2020 09:48:03 -0400 Subject: [PATCH] fix(pubsub): prevent NPE when retrying a pipeline execution with (#8172) a pubsub trigger --- .../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), )