From 062979d8d9d6b82ea0c1b558c87fda63fa5dc4ed Mon Sep 17 00:00:00 2001 From: Henrik Rydgard Date: Mon, 10 Jun 2013 23:47:49 +0200 Subject: [PATCH] Fix crash when clicking UI early. Fixes #2196 --- UI/NativeApp.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 66134e0467..7a6a52dd61 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -483,7 +483,8 @@ bool NativeIsAtTopLevel() { } void NativeTouch(const TouchInput &touch) { - screenManager->touch(touch); + if (screenManager) + screenManager->touch(touch); } void NativeMessageReceived(const char *message, const char *value) {