Don't crash if the platform plugin is not initialized
Change-Id: I999411816192edbd2bf40c6bda92d6e94fb3d1b0 Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
parent
f3785471b7
commit
483a9d83f0
@ -228,6 +228,9 @@ namespace QtAndroidInput
|
||||
return;
|
||||
|
||||
QAndroidPlatformIntegration *platformIntegration = QtAndroid::androidPlatformIntegration();
|
||||
if (!platformIntegration)
|
||||
return;
|
||||
|
||||
QTouchDevice *touchDevice = platformIntegration->touchDevice();
|
||||
if (touchDevice == 0) {
|
||||
touchDevice = new QTouchDevice;
|
||||
|
Loading…
Reference in New Issue
Block a user