From 3dc5912b21668edb0c7f9656b40c2c4586f75557 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Mon, 23 Mar 2009 10:17:04 +0800 Subject: [PATCH] Check reply of ProcessKeyEvent. --- bus/engineproxy.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bus/engineproxy.c b/bus/engineproxy.c index 647845b..e78fbcf 100644 --- a/bus/engineproxy.c +++ b/bus/engineproxy.c @@ -541,7 +541,11 @@ bus_engine_proxy_process_key_event_reply_cb (IBusPendingCall *pending, reply_message = dbus_pending_call_steal_reply (pending); - if ((error = ibus_error_new_from_message (reply_message)) != NULL) { + if (reply_message == NULL) { + call_data->func(FALSE, call_data->user_data); + return; + } + else if ((error = ibus_error_new_from_message (reply_message)) != NULL) { g_warning ("%s: %s", error->name, error->message); ibus_message_unref (reply_message); ibus_error_free (error); -- 2.7.4