Catch the exception 90/114990/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 16 Feb 2017 04:30:28 +0000 (13:30 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 16 Feb 2017 04:30:28 +0000 (13:30 +0900)
Change-Id: If83bb9dee374877cc7d9e201c3c00d3bd4c747f6
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/inputmethod.cpp

index 3de158a..cff72c2 100644 (file)
@@ -503,7 +503,11 @@ int ime_run(ime_callback_s *basic_cb, void *user_data)
     g_user_data = user_data;
     g_running = true;
 
-    g_core.run();
+    try {
+        g_core.run();
+    } catch (...) {
+        LOGW("exception is thrown from g_core.run()\n");
+    }
 
     memset(&g_basic_callback, 0, sizeof(ime_callback_s));
     memset(&g_event_callback, 0, sizeof(ime_event_callback_s));