Android: Fix possible crash
Change-Id: I3362dffe0f30196a2a1eabcffe6cb3b2d52a7785 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
This commit is contained in:
parent
59343eef7d
commit
b30b957552
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user