mirror of
https://github.com/bitwarden/mobile
synced 2025-12-17 16:53:26 +00:00
PM-7855 Fix null check to _appOptions to avoid NRE detected on AppCenter (#3209)
This commit is contained in:
committed by
GitHub
parent
e4841bb322
commit
0b28b954fe
@@ -233,7 +233,10 @@ namespace Bit.App.Pages
|
|||||||
}
|
}
|
||||||
var previousPage = await AppHelpers.ClearPreviousPage();
|
var previousPage = await AppHelpers.ClearPreviousPage();
|
||||||
|
|
||||||
_appOptions.HasJustLoggedInOrUnlocked = true;
|
if (_appOptions != null)
|
||||||
|
{
|
||||||
|
_appOptions.HasJustLoggedInOrUnlocked = true;
|
||||||
|
}
|
||||||
App.MainPage = new TabsPage(_appOptions, previousPage);
|
App.MainPage = new TabsPage(_appOptions, previousPage);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,10 @@ namespace Bit.App.Pages
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_appOptions.HasJustLoggedInOrUnlocked = true;
|
if (_appOptions != null)
|
||||||
|
{
|
||||||
|
_appOptions.HasJustLoggedInOrUnlocked = true;
|
||||||
|
}
|
||||||
var previousPage = await AppHelpers.ClearPreviousPage();
|
var previousPage = await AppHelpers.ClearPreviousPage();
|
||||||
App.MainPage = new TabsPage(_appOptions, previousPage);
|
App.MainPage = new TabsPage(_appOptions, previousPage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -196,7 +196,10 @@ namespace Bit.App.Pages
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_appOptions.HasJustLoggedInOrUnlocked = true;
|
if (_appOptions != null)
|
||||||
|
{
|
||||||
|
_appOptions.HasJustLoggedInOrUnlocked = true;
|
||||||
|
}
|
||||||
var previousPage = await AppHelpers.ClearPreviousPage();
|
var previousPage = await AppHelpers.ClearPreviousPage();
|
||||||
App.MainPage = new TabsPage(_appOptions, previousPage);
|
App.MainPage = new TabsPage(_appOptions, previousPage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -56,7 +56,10 @@ namespace Bit.App.Pages
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_appOptions.HasJustLoggedInOrUnlocked = true;
|
if (_appOptions != null)
|
||||||
|
{
|
||||||
|
_appOptions.HasJustLoggedInOrUnlocked = true;
|
||||||
|
}
|
||||||
var previousPage = await AppHelpers.ClearPreviousPage();
|
var previousPage = await AppHelpers.ClearPreviousPage();
|
||||||
App.MainPage = new TabsPage(_appOptions, previousPage);
|
App.MainPage = new TabsPage(_appOptions, previousPage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,7 +72,10 @@ namespace Bit.App.Pages
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_appOptions.HasJustLoggedInOrUnlocked = true;
|
if (_appOptions != null)
|
||||||
|
{
|
||||||
|
_appOptions.HasJustLoggedInOrUnlocked = true;
|
||||||
|
}
|
||||||
var previousPage = await AppHelpers.ClearPreviousPage();
|
var previousPage = await AppHelpers.ClearPreviousPage();
|
||||||
App.MainPage = new TabsPage(_appOptions, previousPage);
|
App.MainPage = new TabsPage(_appOptions, previousPage);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -207,7 +207,10 @@ namespace Bit.App.Pages
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_appOptions.HasJustLoggedInOrUnlocked = true;
|
if (_appOptions != null)
|
||||||
|
{
|
||||||
|
_appOptions.HasJustLoggedInOrUnlocked = true;
|
||||||
|
}
|
||||||
var previousPage = await AppHelpers.ClearPreviousPage();
|
var previousPage = await AppHelpers.ClearPreviousPage();
|
||||||
App.MainPage = new TabsPage(_appOptions, previousPage);
|
App.MainPage = new TabsPage(_appOptions, previousPage);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user