Skip to content

Commit 745be58

Browse files
author
Kamran Khan
committed
Add null check
1 parent 30b0a69 commit 745be58

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/DisableAzureDiskEncryption.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ public override void ExecuteCmdlet()
269269
// +---------+---------------+----------------------------+
270270

271271
if (OperatingSystemTypes.Windows.Equals(currentOSType) &&
272+
!string.IsNullOrEmpty(VolumeType) &&
272273
VolumeType.Equals(AzureDiskEncryptionExtensionContext.VolumeTypeData, StringComparison.InvariantCultureIgnoreCase))
273274
{
274275
var result = Mapper.Map<PSAzureOperationResponse>(opExt);

0 commit comments

Comments
 (0)