Merge "Prevent crash when elm_win_add fails" into tizen accepted/tizen/mobile/20150514.140000 accepted/tizen/tv/20150514.141226 accepted/tizen/wearable/20150514.140656 submit/tizen_mobile/20150514.075609 submit/tizen_tv/20150514.075620 submit/tizen_wearable/20150514.075615
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 14 May 2015 06:11:17 +0000 (23:11 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 14 May 2015 06:11:17 +0000 (23:11 -0700)
1  2 
src/common.cpp

diff --cc src/common.cpp
@@@ -412,8 -412,14 +412,12 @@@ void CISECommon::run(const sclchar *uui
      }
      LOGD ("Selected engine: '%s'\n", wskb.ee_engine);
  #endif
 -#ifdef WAYLAND
 -    elm_config_preferred_engine_set("wayland_shm");
 -#endif
 +
      m_main_window = elm_win_add(NULL, "Tizen Keyboard", ELM_WIN_UTILITY);
+     if (!m_main_window) {
+         LOGE("Failed to create main window\n");
+         return;
+     }
  
  #ifdef WAYLAND
      wskb.ee = ecore_evas_ecore_evas_get (evas_object_evas_get (m_main_window));