null check on cipher when autofilling

This commit is contained in:
Kyle Spearrin 2019-07-24 10:40:12 -04:00
parent 9d6fc73fcc
commit 2272b10820
1 changed files with 4 additions and 1 deletions

View File

@ -492,7 +492,10 @@ namespace Bit.Droid.Services
}
activity.Finish();
_messagingService.Send("finishMainActivity");
var eventTask = _eventServiceFunc().CollectAsync(EventType.Cipher_ClientAutofilled, cipher.Id);
if(cipher != null)
{
var eventTask = _eventServiceFunc().CollectAsync(EventType.Cipher_ClientAutofilled, cipher.Id);
}
}
}