1
0
mirror of https://github.com/bitwarden/mobile synced 2024-12-26 08:43:22 +01:00

[SG-870] Add null check on notification received (#2221)

This commit is contained in:
André Bispo 2022-12-13 21:50:05 +00:00 committed by GitHub
parent 7785b2dbf9
commit f4b4cfc9de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,8 @@ namespace Bit.App.Services
} }
// if there is a request modal opened ignore all incoming requests // if there is a request modal opened ignore all incoming requests
if (App.Current.MainPage.Navigation.ModalStack.Any(p => p is NavigationPage navPage && navPage.CurrentPage is LoginPasswordlessPage)) // App.Current can be null if the app is killed
if (App.Current != null && App.Current.MainPage.Navigation.ModalStack.Any(p => p is NavigationPage navPage && navPage.CurrentPage is LoginPasswordlessPage))
{ {
return; return;
} }