gdbus(1): Don't fetch props if introspection data indicates none are available
authorDavid Zeuthen <davidz@redhat.com>
Mon, 17 May 2010 15:08:53 +0000 (11:08 -0400)
committerDavid Zeuthen <davidz@redhat.com>
Mon, 17 May 2010 15:08:53 +0000 (11:08 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbus-tool.c

index ec4b36c..4826b35 100644 (file)
@@ -1047,7 +1047,7 @@ dump_interface (GDBusConnection          *c,
                                       (GDestroyNotify) g_variant_unref);
 
   /* Try to get properties */
-  if (c != NULL && name != NULL && object_path != NULL)
+  if (c != NULL && name != NULL && object_path != NULL && o->properties != NULL)
     {
       GVariant *result;
       result = g_dbus_connection_call_sync (c,