Check if bridge plugin vector is still valid.
authorFrederik Gladhorn <frederik.gladhorn@nokia.com>
Fri, 26 Aug 2011 08:33:20 +0000 (10:33 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 26 Aug 2011 13:06:46 +0000 (15:06 +0200)
Q_GLOBAL_STATIC may be destroyed and we still send
ObjectDestroyed notifications.
This only shows now that we actually send the Destroyed notifications.

Change-Id: I3057556cdc897dab6adfc3274e4abc68473ffa7f
Reviewed-on: http://codereview.qt.nokia.com/3657
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Gabriel de Dietrich <gabriel.dietrich-de@nokia.com>
src/gui/accessible/qaccessible_unix.cpp

index 19fbe78..1c1eb2a 100644 (file)
@@ -96,7 +96,7 @@ void QAccessible::updateAccessibility(QObject *o, int who, Event reason)
     }
 
     initialize();
-    if (bridges()->isEmpty())
+    if (!bridges() || bridges()->isEmpty())
         return;
 
     QAccessibleInterface *iface = QAccessible::queryAccessibleInterface(o);