Add NULL check when calling hide request 50/79950/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Wed, 13 Jul 2016 14:23:02 +0000 (23:23 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Wed, 13 Jul 2016 14:23:02 +0000 (23:23 +0900)
Change-Id: I0b373416b2929b2fa1c208bf7777c8986ecf78ce

ism/extras/wayland_immodule/wayland_imcontext.c

index 68f8fdf..22e6b05 100644 (file)
@@ -315,7 +315,9 @@ _send_input_panel_hide_request(Ecore_IMF_Context *ctx)
         Ecore_IMF_Context *temp_context = ecore_imf_context_add(ctx_id);
         if (temp_context) {
             imcontext = (WaylandIMContext *)ecore_imf_context_data_get(temp_context);
-            if (imcontext) wl_text_input_hide_input_panel(imcontext->text_input);
+            if (imcontext && imcontext->text_input)
+                wl_text_input_hide_input_panel(imcontext->text_input);
+
             ecore_imf_context_del(temp_context);
         }
     }