mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 01:48:25 +03:00
crash fixes
This commit is contained in:
parent
636d3c02c4
commit
dcb1102746
3 changed files with 11 additions and 3 deletions
|
@ -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))
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue