summaryrefslogtreecommitdiff
path: root/atspi/atspi-table-cell.c
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2017-03-27 12:57:35 -0500
committerMike Gorse <mgorse@suse.com>2017-03-27 12:59:09 -0500
commiteba079f3e72e61e6b55d81727ab50c85d505d296 (patch)
tree44ba8f5cca6ea59549193a2bd564d0475bbf8379 /atspi/atspi-table-cell.c
parent334b46636dbe0915479e1ceae4a340c8b307a593 (diff)
downloadat-spi2-core-eba079f3e72e61e6b55d81727ab50c85d505d296.tar.gz
atspi_table_cell_get_position: don't crash on error
Diffstat (limited to 'atspi/atspi-table-cell.c')
-rw-r--r--atspi/atspi-table-cell.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/atspi/atspi-table-cell.c b/atspi/atspi-table-cell.c
index c18e6dc4..1df1fa90 100644
--- a/atspi/atspi-table-cell.c
+++ b/atspi/atspi-table-cell.c
@@ -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 */