mirror of
https://github.com/bitwarden/android.git
synced 2024-12-25 02:18:27 +03:00
dont return null
This commit is contained in:
parent
4dd05cf10e
commit
e3dcf4aed1
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue