atspi_table_cell_get_position: don't crash on error
authorMike Gorse <mgorse@suse.com>
Mon, 27 Mar 2017 17:57:35 +0000 (12:57 -0500)
committerMike Gorse <mgorse@suse.com>
Mon, 27 Mar 2017 17:59:09 +0000 (12:59 -0500)
atspi/atspi-table-cell.c

index c18e6dc..1df1fa9 100644 (file)
@@ -163,9 +163,12 @@ atspi_table_cell_get_position (AtspiTableCell *obj,
   g_return_val_if_fail (obj != NULL, -1);
 
   reply = _atspi_dbus_call_partial (obj, "org.freedesktop.DBus.Properties",
-                                    "Get", NULL, "ss",
+                                    "Get", error, "ss",
                                     atspi_interface_table_cell, "Position");
          
+  if (!reply)
+    return -1;
+
   dbus_message_iter_init (reply, &iter);
 
   /* TODO: Return error here */