ios extension autofill fixes

This commit is contained in:
Kyle Spearrin 2017-09-28 22:54:46 -04:00
parent 7a5d25f2e3
commit da847f6567
2 changed files with 5 additions and 2 deletions

View file

@ -260,7 +260,10 @@ namespace Bit.iOS.Extension
NSRunLoop.Main.BeginInvokeOnMainThread(() =>
{
Resolver.ResetResolver();
ExtensionContext.CompleteRequest(returningItems, null);
if(ExtensionContext != null)
{
ExtensionContext.CompleteRequest(returningItems, null);
}
});
});
}

View file

@ -17,7 +17,7 @@ namespace Bit.iOS.Extension.Models
Totp = new Lazy<string>(() => login.Totp?.Decrypt(login.OrganizationId));
Fields = new Lazy<List<Tuple<string, string>>>(() =>
{
if(login.Fields?.Any() ?? true)
if(!login.Fields?.Any() ?? true)
{
return null;
}