[at-spi2-core/gnome-3-10] Add a check NULL of the source accessible handling an event
- From: Mike Gorse <mgorse src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core/gnome-3-10] Add a check NULL of the source accessible handling an event
- Date: Mon, 17 Mar 2014 13:41:27 +0000 (UTC)
commit f9f5e258c5f932df5016a18125c21731dd19c820
Author: Alejandro PiƱeiro <apinheiro igalia com>
Date: Fri Mar 14 11:43:19 2014 +0100
Add a check NULL of the source accessible handling an event
https://bugzilla.gnome.org/show_bug.cgi?id=726243
atspi/atspi-event-listener.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/atspi/atspi-event-listener.c b/atspi/atspi-event-listener.c
index 1291d11..7996200 100644
--- a/atspi/atspi-event-listener.c
+++ b/atspi/atspi-event-listener.c
@@ -924,6 +924,11 @@ _atspi_dbus_handle_event (DBusConnection *bus, DBusMessage *message, void *data)
}
e.type = converted_type;
e.source = _atspi_ref_accessible (dbus_message_get_sender(message), dbus_message_get_path(message));
+ if (e.source == NULL)
+ {
+ g_warning ("Got no valid source accessible for signal for signal %s from interface %s\n", member,
category);
+ return DBUS_HANDLER_RESULT_HANDLED;
+ }
dbus_message_iter_recurse (&iter, &iter_variant);
switch (dbus_message_iter_get_arg_type (&iter_variant))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]