From a7f02c5451093b23ced5a84924d9dc2896e99a3c Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 9 Oct 2017 14:07:16 -0400 Subject: [PATCH] Handle NPE in tag signing display --- .../ui/tag-signing-display/tag-signing-display.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/directives/ui/tag-signing-display/tag-signing-display.component.ts b/static/js/directives/ui/tag-signing-display/tag-signing-display.component.ts index 04fcf9b78..78b14c640 100644 --- a/static/js/directives/ui/tag-signing-display/tag-signing-display.component.ts +++ b/static/js/directives/ui/tag-signing-display/tag-signing-display.component.ts @@ -94,7 +94,7 @@ export class TagSigningDisplayComponent { // Find all delegations containing the tag as a target. Object.keys(delegationSet.delegations).forEach((delegationName) => { var delegation = delegationSet.delegations[delegationName]; - if (delegation.targets[tag.name]) { + if (delegation.targets && delegation.targets[tag.name]) { var DelegationInfo = this.buildDelegationInfo(tag, delegationName, delegation); info.delegations.push(DelegationInfo); info.delegationsByName[delegationName] = DelegationInfo;