Skip to hide candiate in case of no candidate 38/100738/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 29 Nov 2016 06:07:39 +0000 (15:07 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 29 Nov 2016 06:07:52 +0000 (15:07 +0900)
Change-Id: Ia28b662a6837b9b7804b96b24a2f15867d10f426

src/ise.cpp

index bb48da5..f4bb828 100644 (file)
@@ -611,6 +611,12 @@ void CCoreEventCallback::on_candidate_show(sclint ic, const sclchar *ic_uuid)
 void CCoreEventCallback::on_candidate_hide(sclint ic, const sclchar *ic_uuid)
 {
     LOGD("Enter\n");
+
+    if (!g_candidate || !g_softcandidate_show) {
+        LOGD("No candidate\n");
+        return;
+    }
+
     add_softcandidate_hide_timer();
     if (g_ui) {
         g_ui->set_custom_starting_coordinates(0, 0);