[PM-1906] check value of KeyValuePair for null instead of object (#2489)

This commit is contained in:
Jake Fink 2023-04-21 11:24:33 -04:00 committed by GitHub
parent 6a5c999628
commit 659d34dfc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ namespace Bit.Core.Services
_policyCache = null; _policyCache = null;
var vaultTimeoutPolicy = policies.FirstOrDefault(p => p.Value.Type == PolicyType.MaximumVaultTimeout); var vaultTimeoutPolicy = policies.FirstOrDefault(p => p.Value.Type == PolicyType.MaximumVaultTimeout);
if (!vaultTimeoutPolicy.Equals(default)) if (vaultTimeoutPolicy.Value != null)
{ {
await UpdateVaultTimeoutFromPolicyAsync(new Policy(vaultTimeoutPolicy.Value)); await UpdateVaultTimeoutFromPolicyAsync(new Policy(vaultTimeoutPolicy.Value));
} }