mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 15:15:34 +03:00
crash fixes
This commit is contained in:
parent
c29d902b8e
commit
4a0fc5ca0e
2 changed files with 2 additions and 2 deletions
|
@ -94,7 +94,7 @@ namespace Bit.App.Services
|
|||
{
|
||||
if(Key == null)
|
||||
{
|
||||
throw new InvalidOperationException("Key must be set before asking if it has changed.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if(PreviousKey == null)
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace Bit.App.Services
|
|||
var settings = await _settingsRepository.GetByIdAsync(_authService.UserId);
|
||||
if(string.IsNullOrWhiteSpace(settings?.EquivalentDomains))
|
||||
{
|
||||
return null;
|
||||
return new List<string[]>();
|
||||
}
|
||||
|
||||
return JsonConvert.DeserializeObject<IEnumerable<IEnumerable<string>>>(settings.EquivalentDomains);
|
||||
|
|
Loading…
Reference in a new issue