Add a check for a null message when returning a hyperlink
authorMike Gorse <mgorse@suse.com>
Mon, 7 May 2012 16:28:05 +0000 (11:28 -0500)
committerMike Gorse <mgorse@suse.com>
Mon, 7 May 2012 16:28:05 +0000 (11:28 -0500)
atspi/atspi-misc.c

index 37971cf..6589843 100644 (file)
@@ -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);