fix: nullptr access on empty storage (#5264)

This commit is contained in:
Raphael Coeffic
2024-07-08 08:18:02 +10:00
committed by GitHub
parent d575242c0f
commit 6e531849e5
+1
View File
@@ -370,6 +370,7 @@ void ViewMain::show(bool visible)
bool ViewMain::isAppMode()
{
int view = getCurrentMainView();
if (!customScreens[view]) return false;
return ((Layout*)customScreens[view])->isAppMode();
}