mirror of
https://github.com/bitwarden/mobile
synced 2025-12-28 22:23:35 +00:00
fix for crash on startup when policies are non-existent (#1579)
This commit is contained in:
committed by
Matt Portune
parent
6a6764394d
commit
ab80c3d4c7
@@ -201,6 +201,10 @@ namespace Bit.Core.Services
|
||||
public async Task<bool> PolicyAppliesToUser(PolicyType policyType, Func<Policy, bool> policyFilter)
|
||||
{
|
||||
var policies = await GetAll(policyType);
|
||||
if (policies == null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
var organizations = await _userService.GetAllOrganizationAsync();
|
||||
|
||||
IEnumerable<Policy> filteredPolicies;
|
||||
|
||||
Reference in New Issue
Block a user