dont return null

This commit is contained in:
Kyle Spearrin 2019-05-30 22:11:19 -04:00
parent 4dd05cf10e
commit e3dcf4aed1

View file

@ -37,9 +37,9 @@ namespace Bit.Core.Services
if(settings != null && settings.ContainsKey(Keys_EquivalentDomains)) if(settings != null && settings.ContainsKey(Keys_EquivalentDomains))
{ {
var jArray = (settings[Keys_EquivalentDomains] as JArray); var jArray = (settings[Keys_EquivalentDomains] as JArray);
return jArray?.ToObject<List<List<string>>>(); return jArray?.ToObject<List<List<string>>>() ?? new List<List<string>>();
} }
return null; return new List<List<string>>();
} }
public Task SetEquivalentDomainsAsync(List<List<string>> equivalentDomains) public Task SetEquivalentDomainsAsync(List<List<string>> equivalentDomains)