Do not handle invalid accessibles in atspi bridge.

Change-Id: I13a7dd1e190c5d3a5bb8be0ee66c2f18d0d3a1b5
Reviewed-by: Morten Johan Sørvig <morten.sorvig@digia.com>
Reviewed-by: Jan Arve Sæther <jan-arve.saether@digia.com>
This commit is contained in:
Frederik Gladhorn 2012-10-01 14:09:50 +02:00 committed by The Qt Project
parent 3f7388bc1e
commit d242c951be

View 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();