Skip to content

Commit e479a39

Browse files
committed
Azure KeyVault: Fix null ref exception while deserializing certificate tags.
1 parent 3711136 commit e479a39

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)