Android: Fix possible crash

Change-Id: I3362dffe0f30196a2a1eabcffe6cb3b2d52a7785
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
BogDan Vatra 2018-03-13 10:31:19 +02:00
parent 59343eef7d
commit b30b957552

View File

@ -599,7 +599,7 @@ void QtAndroidPrivate::setOnBindListener(QtAndroidPrivate::OnBindListener *liste
jobject QtAndroidPrivate::callOnBindListener(jobject intent)
{
QMutexLocker lock(g_onBindListenerMutex);
if (g_onBindListener)
if (*g_onBindListener)
return (*g_onBindListener)->onBind(intent);
return nullptr;
}