gtkapplication: g_dbus_proxy_new_sync can return NULL

Specifically, in the case where @error is set.
This commit is contained in:
Timm Bäder
2017-07-09 10:02:34 +02:00
committed by Daniel Boles
parent df10ec7b9b
commit 505d5e41c2

View File

@ -131,6 +131,9 @@ gtk_application_get_proxy_if_service_present (GDBusConnection *connection,
NULL,
error);
if (!proxy)
return NULL;
/* is there anyone actually providing the service? */
owner = g_dbus_proxy_get_name_owner (proxy);
if (owner == NULL)