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:
parent
6a5c999628
commit
659d34dfc2
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user