Fix isf-panel-efl crash issue when the ecore_wl_init() is failed 31/165931/1
authorInHong Han <inhong1.han@samsung.com>
Fri, 5 Jan 2018 01:57:50 +0000 (10:57 +0900)
committerInHong Han <inhong1.han@samsung.com>
Fri, 5 Jan 2018 02:03:33 +0000 (02:03 +0000)
Change-Id: I22fcbd035af031c754adaba6d80c3788f67bc8ea

ism/modules/panelagent/wayland/wayland_panel_agent_module.cpp

index 454fdfa..e1d6418 100644 (file)
@@ -1181,10 +1181,14 @@ isf_wsc_context_init (void)
 
     if (!_scim_initialized) {
         _ecore_wl_init_count = ecore_wl_init (NULL);
-        initialize ();
-        _scim_initialized = true;
-        isf_wsc_input_panel_init ();
-        //isf_wsc_context_set_hardware_keyboard_mode(context_scim);
+        if (_ecore_wl_init_count > 0) {
+            initialize ();
+            _scim_initialized = true;
+            isf_wsc_input_panel_init ();
+            //isf_wsc_context_set_hardware_keyboard_mode(context_scim);
+        }
+        else
+            LOGE("Failed to initialize Ecore_Wl");
     }
 }