Fix derefence of NULL issue detected by static analysis tool 20/165520/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 2 Jan 2018 01:32:18 +0000 (10:32 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Tue, 2 Jan 2018 01:32:18 +0000 (10:32 +0900)
Change-Id: Ia647683357ffb6e3627035dc4683ed55e03428fd
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise.cpp

index 00b9cea..fc979ff 100644 (file)
@@ -2358,6 +2358,9 @@ static void show_autofill_data(Ecore_IMF_Input_Hints input_hints)
         LOGW("ckmc_get_data error: %d", ret);
         return;
     } else {
+        if (!ckmc_data)
+            return;
+
         autofill_data = strndup((const char *)ckmc_data->data, ckmc_data->size);
         SECURE_LOGD("data : '%s', len : %d", autofill_data, ckmc_data->size);
     }