1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-12-31 17:47:43 +01:00

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))
{
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)