diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index c822702b49..1f7ee8509e 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -1004,6 +1004,11 @@ void NativeUpdate() { } bool NativeIsAtTopLevel() { + // This might need some synchronization? + if (!screenManager) { + ELOG("No screen manager active"); + return false; + } Screen *currentScreen = screenManager->topScreen(); if (currentScreen) { bool top = currentScreen->isTopLevel();