Fix crash, when dbus call in GetNeighbor fails
[platform/upstream/at-spi2-core.git] / atspi / atspi-misc.c
index 02eab8c..5895935 100644 (file)
@@ -1153,6 +1153,7 @@ out:
     dbus_error_free (&err);
     if (reply)
       dbus_message_unref(reply);
+    return NULL;
   }
   else if (reply && dbus_message_get_type(reply) == DBUS_MESSAGE_TYPE_ERROR)
   {