crash fixes

This commit is contained in:
Kyle Spearrin 2019-06-14 08:05:28 -04:00
parent 636d3c02c4
commit dcb1102746
3 changed files with 11 additions and 3 deletions

View File

@ -381,10 +381,10 @@ namespace Bit.App.Pages
return false;
}
Cipher.Fields = Fields.Any() ? Fields.Select(f => f.Field).ToList() : null;
Cipher.Fields = Fields != null && Fields.Any() ? Fields.Select(f => f.Field).ToList() : null;
if(Cipher.Login != null)
{
Cipher.Login.Uris = Uris.ToList();
Cipher.Login.Uris = Uris?.ToList();
if(!EditMode && Cipher.Type == CipherType.Login && (Cipher.Login.Uris?.Count ?? 0) == 1 &&
string.IsNullOrWhiteSpace(Cipher.Login.Uris.First().Uri))
{

View File

@ -112,6 +112,10 @@ namespace Bit.App.Pages
public async Task SelectCipherAsync(CipherView cipher, bool fuzzy)
{
if(cipher == null)
{
return;
}
if(_deviceActionService.SystemMajorVersion() < 21)
{
await AppHelpers.CipherListOptions(Page, cipher);

View File

@ -94,7 +94,11 @@ namespace Bit.App.Services
if((uri.StartsWith("http://") || uri.StartsWith("https://")) &&
Uri.TryCreate(uri, UriKind.Absolute, out var parsedUri))
{
Browser.OpenAsync(uri, BrowserLaunchMode.External);
try
{
Browser.OpenAsync(uri, BrowserLaunchMode.External);
}
catch(FeatureNotSupportedException) { }
}
else
{