diff --git a/src/Core/Services/PolicyService.cs b/src/Core/Services/PolicyService.cs index 297f4db08..f4f1bf041 100644 --- a/src/Core/Services/PolicyService.cs +++ b/src/Core/Services/PolicyService.cs @@ -37,6 +37,10 @@ namespace Bit.Core.Services var userId = await _userService.GetUserIdAsync(); var policies = await _storageService.GetAsync>( string.Format(Keys_PoliciesPrefix, userId)); + if(policies == null) + { + return null; + } _policyCache = policies.Select(p => new Policy(policies[p.Key])); }