Skip to content

Commit e21ad18

Browse files
authored
Merge pull request Azure#2918 from rohmano/dev
Azure KeyVault: Fix null ref exception while deserializing certificate tags
2 parents 3711136 + e479a39 commit e21ad18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/KeyVault/Commands.KeyVault/Models/CertificateIdentityItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ internal CertificateIdentityItem(CertificateBundle certBundle)
6060
NotBefore = certBundle.Attributes.NotBefore;
6161
Created = certBundle.Attributes.Created;
6262
Updated = certBundle.Attributes.Updated;
63-
Tags = certBundle.Tags.ConvertToHashtable();
63+
Tags = (certBundle.Tags == null) ? null : certBundle.Tags.ConvertToHashtable();
6464
}
6565

6666
public bool? Enabled { get; set; }

0 commit comments

Comments
 (0)