diff --git a/src/Core/Services/PolicyService.cs b/src/Core/Services/PolicyService.cs index 5214e6637..95529ab26 100644 --- a/src/Core/Services/PolicyService.cs +++ b/src/Core/Services/PolicyService.cs @@ -201,6 +201,10 @@ namespace Bit.Core.Services public async Task PolicyAppliesToUser(PolicyType policyType, Func policyFilter) { var policies = await GetAll(policyType); + if (policies == null) + { + return false; + } var organizations = await _userService.GetAllOrganizationAsync(); IEnumerable filteredPolicies;