mirror of
https://github.com/bitwarden/mobile.git
synced 2025-01-13 19:41:31 +01:00
null check on id
This commit is contained in:
parent
2272b10820
commit
9fe9210cb7
@ -129,8 +129,11 @@ namespace Bit.iOS.Autofill
|
|||||||
var cred = new ASPasswordCredential(username, password);
|
var cred = new ASPasswordCredential(username, password);
|
||||||
NSRunLoop.Main.BeginInvokeOnMainThread(async () =>
|
NSRunLoop.Main.BeginInvokeOnMainThread(async () =>
|
||||||
{
|
{
|
||||||
var eventService = ServiceContainer.Resolve<IEventService>("eventService");
|
if(!string.IsNullOrWhiteSpace(id))
|
||||||
await eventService.CollectAsync(Bit.Core.Enums.EventType.Cipher_ClientAutofilled, id);
|
{
|
||||||
|
var eventService = ServiceContainer.Resolve<IEventService>("eventService");
|
||||||
|
await eventService.CollectAsync(Bit.Core.Enums.EventType.Cipher_ClientAutofilled, id);
|
||||||
|
}
|
||||||
ServiceContainer.Reset();
|
ServiceContainer.Reset();
|
||||||
ExtensionContext?.CompleteRequest(cred, null);
|
ExtensionContext?.CompleteRequest(cred, null);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user