From e3dcf4aed1f95795f1ddca20ff3505bed4d6b83e Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 30 May 2019 22:11:19 -0400 Subject: [PATCH] dont return null --- src/Core/Services/SettingsService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/Services/SettingsService.cs b/src/Core/Services/SettingsService.cs index a4b491e39..8994ddd01 100644 --- a/src/Core/Services/SettingsService.cs +++ b/src/Core/Services/SettingsService.cs @@ -37,9 +37,9 @@ namespace Bit.Core.Services if(settings != null && settings.ContainsKey(Keys_EquivalentDomains)) { var jArray = (settings[Keys_EquivalentDomains] as JArray); - return jArray?.ToObject>>(); + return jArray?.ToObject>>() ?? new List>(); } - return null; + return new List>(); } public Task SetEquivalentDomainsAsync(List> equivalentDomains)