Skip to content

Commit 7d3434f

Browse files
Handle nullable object must have a value error
1 parent edbef15 commit 7d3434f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KeyVault/KeyVault/Models/VaultManagementClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public PSKeyVault UpdateVault(
180180
&& updatedSoftDeleteSwitch.Value)
181181
properties.EnableSoftDelete = updatedSoftDeleteSwitch;
182182

183-
if (!(properties.EnablePurgeProtection.HasValue && properties.EnableSoftDelete.Value)
183+
if (!(properties.EnablePurgeProtection.HasValue && properties.EnablePurgeProtection.Value)
184184
&& updatedPurgeProtectionSwitch.HasValue
185185
&& updatedPurgeProtectionSwitch.Value)
186186
properties.EnablePurgeProtection = updatedPurgeProtectionSwitch;

0 commit comments

Comments
 (0)