crash fixes

This commit is contained in:
Kyle Spearrin 2017-02-09 22:06:39 -05:00
parent c29d902b8e
commit 4a0fc5ca0e
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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);