mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
crash fixes
This commit is contained in:
parent
c29d902b8e
commit
4a0fc5ca0e
@ -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 New Issue
Block a user