EDataBook: Silence runtime warnings in direct access mode.
authorMatthew Barnes <mbarnes@redhat.com>
Wed, 20 Mar 2013 19:33:49 +0000 (15:33 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Wed, 20 Mar 2013 22:54:22 +0000 (18:54 -0400)
e_data_book_report_backend_property_changed() apparently has no way to
report backend property changes in direct access mode.  Return silently.

addressbook/libedata-book/e-data-book.c

index 5175d6b..df97293 100644 (file)
@@ -1778,6 +1778,11 @@ e_data_book_report_backend_property_changed (EDataBook *book,
 
        dbus_interface = book->priv->dbus_interface;
 
+       /* XXX This will be NULL in direct access mode.  No way to
+        *     report property changes, I guess.  Return silently. */
+       if (dbus_interface == NULL)
+               return;
+
        if (g_str_equal (prop_name, CLIENT_BACKEND_PROPERTY_CAPABILITIES)) {
                strv = g_strsplit (prop_value, ",", -1);
                e_dbus_address_book_set_capabilities (