mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 15:53:44 +00:00
null check on id
This commit is contained in:
@@ -128,9 +128,12 @@ namespace Bit.iOS.Autofill
|
|||||||
|
|
||||||
var cred = new ASPasswordCredential(username, password);
|
var cred = new ASPasswordCredential(username, password);
|
||||||
NSRunLoop.Main.BeginInvokeOnMainThread(async () =>
|
NSRunLoop.Main.BeginInvokeOnMainThread(async () =>
|
||||||
|
{
|
||||||
|
if(!string.IsNullOrWhiteSpace(id))
|
||||||
{
|
{
|
||||||
var eventService = ServiceContainer.Resolve<IEventService>("eventService");
|
var eventService = ServiceContainer.Resolve<IEventService>("eventService");
|
||||||
await eventService.CollectAsync(Bit.Core.Enums.EventType.Cipher_ClientAutofilled, id);
|
await eventService.CollectAsync(Bit.Core.Enums.EventType.Cipher_ClientAutofilled, id);
|
||||||
|
}
|
||||||
ServiceContainer.Reset();
|
ServiceContainer.Reset();
|
||||||
ExtensionContext?.CompleteRequest(cred, null);
|
ExtensionContext?.CompleteRequest(cred, null);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user