Do not handle invalid accessibles in atspi bridge.
authorFrederik Gladhorn <frederik.gladhorn@digia.com>
Mon, 1 Oct 2012 12:09:50 +0000 (14:09 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Wed, 10 Oct 2012 15:07:46 +0000 (17:07 +0200)
Change-Id: I13a7dd1e190c5d3a5bb8be0ee66c2f18d0d3a1b5
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
src/platformsupport/linuxaccessibility/atspiadaptor.cpp

index a14c97f..a4a4d66 100644 (file)
@@ -1208,6 +1208,10 @@ bool AtSpiAdaptor::handleMessage(const QDBusMessage &message, const QDBusConnect
         qAtspiDebug() << "WARNING Qt AtSpiAdaptor: Could not find accessible on path: " << message.path();
         return false;
     }
+    if (!accessible->isValid()) {
+        qWarning() << "WARNING Qt AtSpiAdaptor: Accessible invalid: " << accessible << message.path();
+        return false;
+    }
 
     QString interface = message.interface();
     QString function = message.member();