mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
gtkapplication: g_dbus_proxy_new_sync can return NULL
Specifically, in the case where @error is set.
This commit is contained in:
parent
5fb27e2bd7
commit
edf0aeb92e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user