1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-06 02:23:57 +00:00

null checking

This commit is contained in:
Kyle Spearrin
2019-07-22 08:44:55 -04:00
parent 2062a284e3
commit c2108fdda0
2 changed files with 12 additions and 9 deletions

View File

@@ -440,7 +440,7 @@ namespace Bit.App.Pages
EditMode ? AppResources.ItemUpdated : AppResources.NewItemCreated);
_messagingService.Send(EditMode ? "editedCipher" : "addedCipher", Cipher.Id);
if((Page as AddEditPage).FromAutofillFramework)
if(Page is AddEditPage page && page.FromAutofillFramework)
{
// Close and go back to app
_deviceActionService.CloseAutofill();