aboutsummaryrefslogtreecommitdiff
path: root/ui/dbus-console.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/dbus-console.c')
-rw-r--r--ui/dbus-console.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/dbus-console.c b/ui/dbus-console.c
index 1ccf638..e062f72 100644
--- a/ui/dbus-console.c
+++ b/ui/dbus-console.c
@@ -219,7 +219,7 @@ dbus_console_register_listener(DBusDisplayConsole *ddc,
DBusDisplayListener *listener;
int fd;
- if (g_hash_table_contains(ddc->listeners, sender)) {
+ if (sender && g_hash_table_contains(ddc->listeners, sender)) {
g_dbus_method_invocation_return_error(
invocation,
DBUS_DISPLAY_ERROR,