[at-spi2-core/gnome-3-4] Add a check for a null message when returning a hyperlink



commit dd4fce52b9e43939fd92eaf3905d399d32c64560
Author: Mike Gorse <mgorse suse com>
Date:   Mon May 7 11:25:52 2012 -0500

    Add a check for a null message when returning a hyperlink

 atspi/atspi-misc.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index 4280c95..aa140ad 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -611,8 +611,12 @@ _atspi_dbus_return_hyperlink_from_message (DBusMessage *message)
 {
   DBusMessageIter iter;
   AtspiHyperlink *retval = NULL;
-  const char *signature = dbus_message_get_signature (message);
+  const char *signature;
    
+  if (!message)
+    return NULL;
+
+  signature = dbus_message_get_signature (message);
   if (!strcmp (signature, "(so)"))
   {
     dbus_message_iter_init (message, &iter);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]