diff --git a/src/iOS.Extension/LoadingViewController.cs b/src/iOS.Extension/LoadingViewController.cs index ddeeb5d60..36e3edf4b 100644 --- a/src/iOS.Extension/LoadingViewController.cs +++ b/src/iOS.Extension/LoadingViewController.cs @@ -260,7 +260,10 @@ namespace Bit.iOS.Extension NSRunLoop.Main.BeginInvokeOnMainThread(() => { Resolver.ResetResolver(); - ExtensionContext.CompleteRequest(returningItems, null); + if(ExtensionContext != null) + { + ExtensionContext.CompleteRequest(returningItems, null); + } }); }); } diff --git a/src/iOS.Extension/Models/LoginViewModel.cs b/src/iOS.Extension/Models/LoginViewModel.cs index 924e4d908..319002dc4 100644 --- a/src/iOS.Extension/Models/LoginViewModel.cs +++ b/src/iOS.Extension/Models/LoginViewModel.cs @@ -17,7 +17,7 @@ namespace Bit.iOS.Extension.Models Totp = new Lazy(() => login.Totp?.Decrypt(login.OrganizationId)); Fields = new Lazy>>(() => { - if(login.Fields?.Any() ?? true) + if(!login.Fields?.Any() ?? true) { return null; }