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:
josephschorr 2017-10-17 13:18:43 -04:00 committed by GitHub
commit 6b217b497a

View file

@ -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;