1
0
mirror of https://github.com/bitwarden/mobile synced 2024-12-29 10:13:48 +01:00

[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

View File

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