summaryrefslogtreecommitdiffstats
path: root/bus/dbusimpl.c
diff options
context:
space:
mode:
Diffstat (limited to 'bus/dbusimpl.c')
-rw-r--r--bus/dbusimpl.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bus/dbusimpl.c b/bus/dbusimpl.c
index 414a143..66b92f3 100644
--- a/bus/dbusimpl.c
+++ b/bus/dbusimpl.c
@@ -948,7 +948,10 @@ bus_dbus_impl_dispatch_message (BusDBusImpl *dbus,
destination = dbus_message_get_destination (message);
if (destination != NULL) {
dest_connection = bus_dbus_impl_get_connection_by_name (dbus, destination);
- ibus_connection_send (IBUS_CONNECTION (dest_connection), message);
+
+ if (dest_connection != NULL) {
+ ibus_connection_send (IBUS_CONNECTION (dest_connection), message);
+ }
}
bus_dbus_impl_dispatch_message_by_rule (dbus, message, dest_connection);