Merge pull request #2890 from coreos-inc/joseph.schorr/QS-37/signing-npe
Further NPE fix in tag signing display
This commit is contained in:
commit
6b217b497a
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 && delegation.targets[tag.name]) {
|
||||
if (delegation && 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