diff --git a/src/Core/Pages/Accounts/LockPage.xaml.cs b/src/Core/Pages/Accounts/LockPage.xaml.cs index b90b2c04e..ce45b6eb8 100644 --- a/src/Core/Pages/Accounts/LockPage.xaml.cs +++ b/src/Core/Pages/Accounts/LockPage.xaml.cs @@ -233,7 +233,10 @@ namespace Bit.App.Pages } var previousPage = await AppHelpers.ClearPreviousPage(); - _appOptions.HasJustLoggedInOrUnlocked = true; + if (_appOptions != null) + { + _appOptions.HasJustLoggedInOrUnlocked = true; + } App.MainPage = new TabsPage(_appOptions, previousPage); } } diff --git a/src/Core/Pages/Accounts/LoginApproveDevicePage.xaml.cs b/src/Core/Pages/Accounts/LoginApproveDevicePage.xaml.cs index 8b46fc9e3..f28be1485 100644 --- a/src/Core/Pages/Accounts/LoginApproveDevicePage.xaml.cs +++ b/src/Core/Pages/Accounts/LoginApproveDevicePage.xaml.cs @@ -36,7 +36,10 @@ namespace Bit.App.Pages return; } - _appOptions.HasJustLoggedInOrUnlocked = true; + if (_appOptions != null) + { + _appOptions.HasJustLoggedInOrUnlocked = true; + } var previousPage = await AppHelpers.ClearPreviousPage(); App.MainPage = new TabsPage(_appOptions, previousPage); } diff --git a/src/Core/Pages/Accounts/LoginPage.xaml.cs b/src/Core/Pages/Accounts/LoginPage.xaml.cs index 434a06273..17a41cbaf 100644 --- a/src/Core/Pages/Accounts/LoginPage.xaml.cs +++ b/src/Core/Pages/Accounts/LoginPage.xaml.cs @@ -196,7 +196,10 @@ namespace Bit.App.Pages return; } - _appOptions.HasJustLoggedInOrUnlocked = true; + if (_appOptions != null) + { + _appOptions.HasJustLoggedInOrUnlocked = true; + } var previousPage = await AppHelpers.ClearPreviousPage(); App.MainPage = new TabsPage(_appOptions, previousPage); } diff --git a/src/Core/Pages/Accounts/LoginPasswordlessRequestPage.xaml.cs b/src/Core/Pages/Accounts/LoginPasswordlessRequestPage.xaml.cs index f8333f972..f1f67ccdb 100644 --- a/src/Core/Pages/Accounts/LoginPasswordlessRequestPage.xaml.cs +++ b/src/Core/Pages/Accounts/LoginPasswordlessRequestPage.xaml.cs @@ -56,7 +56,10 @@ namespace Bit.App.Pages return; } - _appOptions.HasJustLoggedInOrUnlocked = true; + if (_appOptions != null) + { + _appOptions.HasJustLoggedInOrUnlocked = true; + } var previousPage = await AppHelpers.ClearPreviousPage(); App.MainPage = new TabsPage(_appOptions, previousPage); } diff --git a/src/Core/Pages/Accounts/SetPasswordPage.xaml.cs b/src/Core/Pages/Accounts/SetPasswordPage.xaml.cs index 5a305cf6c..558375dfb 100644 --- a/src/Core/Pages/Accounts/SetPasswordPage.xaml.cs +++ b/src/Core/Pages/Accounts/SetPasswordPage.xaml.cs @@ -72,7 +72,10 @@ namespace Bit.App.Pages return; } - _appOptions.HasJustLoggedInOrUnlocked = true; + if (_appOptions != null) + { + _appOptions.HasJustLoggedInOrUnlocked = true; + } var previousPage = await AppHelpers.ClearPreviousPage(); App.MainPage = new TabsPage(_appOptions, previousPage); } diff --git a/src/Core/Pages/Accounts/TwoFactorPage.xaml.cs b/src/Core/Pages/Accounts/TwoFactorPage.xaml.cs index a3dfae976..342eefd79 100644 --- a/src/Core/Pages/Accounts/TwoFactorPage.xaml.cs +++ b/src/Core/Pages/Accounts/TwoFactorPage.xaml.cs @@ -207,7 +207,10 @@ namespace Bit.App.Pages return; } - _appOptions.HasJustLoggedInOrUnlocked = true; + if (_appOptions != null) + { + _appOptions.HasJustLoggedInOrUnlocked = true; + } var previousPage = await AppHelpers.ClearPreviousPage(); App.MainPage = new TabsPage(_appOptions, previousPage); }