summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/src/androidjniinput.cpp
diff options
context:
space:
mode:
authorBogDan Vatra <bogdan@kde.org>2013-10-17 16:48:02 +0300
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-23 14:08:36 +0200
commit483a9d83f04b17b797df171d3eff91341a565a33 (patch)
tree5a6f4fc2973ba7cdc3cf9d8e1305cd90f2504ccd /src/plugins/platforms/android/src/androidjniinput.cpp
parentf3785471b7f52a054d9f24e62e7dff905b4de75c (diff)
Don't crash if the platform plugin is not initialized
Change-Id: I999411816192edbd2bf40c6bda92d6e94fb3d1b0 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'src/plugins/platforms/android/src/androidjniinput.cpp')
-rw-r--r--src/plugins/platforms/android/src/androidjniinput.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/platforms/android/src/androidjniinput.cpp b/src/plugins/platforms/android/src/androidjniinput.cpp
index 1e8a847159..30d4e69afe 100644
--- a/src/plugins/platforms/android/src/androidjniinput.cpp
+++ b/src/plugins/platforms/android/src/androidjniinput.cpp
@@ -228,6 +228,9 @@ namespace QtAndroidInput
return;
QAndroidPlatformIntegration *platformIntegration = QtAndroid::androidPlatformIntegration();
+ if (!platformIntegration)
+ return;
+
QTouchDevice *touchDevice = platformIntegration->touchDevice();
if (touchDevice == 0) {
touchDevice = new QTouchDevice;