[PM-1906] check value of KeyValuePair for null instead of object (#2489)
This commit is contained in:
parent
6a5c999628
commit
659d34dfc2
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue