mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-25 12:05:59 +01:00
fix for crash on startup when policies are non-existent (#1579)
This commit is contained in:
parent
62a8d1c017
commit
a0bb16c35f
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user