diff --git a/src/Core/Services/SyncService.cs b/src/Core/Services/SyncService.cs index cfb175f84..9a739d500 100644 --- a/src/Core/Services/SyncService.cs +++ b/src/Core/Services/SyncService.cs @@ -365,7 +365,8 @@ namespace Bit.Core.Services private async Task SyncPolicies(List response) { - var policies = response.ToDictionary(p => p.Id, p => new PolicyData(p)); + var policies = response?.ToDictionary(p => p.Id, p => new PolicyData(p)) ?? + new Dictionary(); await _policyService.Replace(policies); } }