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 Matthias Clasen
parent 5fb27e2bd7
commit edf0aeb92e

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)