From 5ed235ac1e6d3d4041748283b02cb5664f6920f7 Mon Sep 17 00:00:00 2001 From: Wonkeun Oh Date: Tue, 3 Feb 2015 16:07:56 +0900 Subject: [PATCH] Added Null checking code for active_ctx in the input_panel_shutdown Change-Id: Ia843f577414891d656b8aca8071a906e1a810faf --- ism/extras/efl_immodule/isf_imf_control_ui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ism/extras/efl_immodule/isf_imf_control_ui.cpp b/ism/extras/efl_immodule/isf_imf_control_ui.cpp index 47d8644..d004fdb 100644 --- a/ism/extras/efl_immodule/isf_imf_control_ui.cpp +++ b/ism/extras/efl_immodule/isf_imf_control_ui.cpp @@ -519,7 +519,11 @@ void isf_imf_input_panel_shutdown (void) candidate_conformant_reset_done = TRUE; SECURE_LOGD ("candidate_conformant_reset_done = 1"); - isf_imf_context_input_panel_send_candidate_will_hide_ack (get_using_ic (ECORE_IMF_INPUT_PANEL_STATE_EVENT, ECORE_IMF_INPUT_PANEL_STATE_SHOW)); + + Ecore_IMF_Context *active_ctx = get_using_ic (ECORE_IMF_INPUT_PANEL_STATE_EVENT, ECORE_IMF_INPUT_PANEL_STATE_SHOW); + if (active_ctx) { + isf_imf_context_input_panel_send_candidate_will_hide_ack (active_ctx); + } if (_prop_change_handler) { ecore_event_handler_del (_prop_change_handler); -- 2.7.4