Handle NPE in tag signing display
This commit is contained in:
parent
563f6b5187
commit
a7f02c5451
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue