[gtk+/wip/baedert/drawing: 12/18] gtkapplication: g_dbus_proxy_new_sync can return NULL
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 12/18] gtkapplication: g_dbus_proxy_new_sync can return NULL
- Date: Tue, 11 Jul 2017 15:16:02 +0000 (UTC)
commit 3092f2f71aa6eea6998247ef84ed17ff0a1fd1c4
Author: Timm Bäder <mail baedert org>
Date: Sun Jul 9 10:02:34 2017 +0200
gtkapplication: g_dbus_proxy_new_sync can return NULL
Specifically, in the case where @error is set.
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 3ad964e..be88565 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]