Added Null checking code for active_ctx in the input_panel_shutdown 59/40759/1
authorWonkeun Oh <wonkeun.oh@samsung.com>
Tue, 3 Feb 2015 07:07:56 +0000 (16:07 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 8 Jun 2015 23:53:29 +0000 (08:53 +0900)
Change-Id: Ia843f577414891d656b8aca8071a906e1a810faf

ism/extras/efl_immodule/isf_imf_control_ui.cpp

index 47d8644..d004fdb 100644 (file)
@@ -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);