diff --git a/glfw/dbus_glfw.c b/glfw/dbus_glfw.c index 50eda8491..66e40d4eb 100644 --- a/glfw/dbus_glfw.c +++ b/glfw/dbus_glfw.c @@ -96,8 +96,10 @@ toggle_dbus_watch(DBusWatch *watch, void *data) { static void on_dbus_timer_ready(id_type timer_id, void *data) { - DBusTimeout *t = (DBusTimeout*)data; - dbus_timeout_handle(t); + if (data) { + DBusTimeout *t = (DBusTimeout*)data; + dbus_timeout_handle(t); + } }