diff options
author | Timm Bäder <mail@baedert.org> | 2017-07-09 10:02:34 +0200 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2017-07-19 21:27:15 -0400 |
commit | edf0aeb92e5bdcde834a40698a87b1e74d424fda (patch) | |
tree | dd2cd766eee3aad4d5913fec152fa41f48bc38ed | |
parent | 5fb27e2bd7dfcc13a196336224fefc2e981a7e4c (diff) | |
download | gtk+-edf0aeb92e5bdcde834a40698a87b1e74d424fda.tar.gz |
gtkapplication: g_dbus_proxy_new_sync can return NULL
Specifically, in the case where @error is set.
-rw-r--r-- | gtk/gtkapplication-dbus.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkapplication-dbus.c b/gtk/gtkapplication-dbus.c index 3ad964ee57..be88565216 100644 --- a/gtk/gtkapplication-dbus.c +++ b/gtk/gtkapplication-dbus.c @@ -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) |