Fix issues detected by static analysis tool 52/94452/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 31 Oct 2016 03:55:58 +0000 (12:55 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 31 Oct 2016 03:55:58 +0000 (12:55 +0900)
Change-Id: I27ac9007b4cf89ef55d1dae132f0ed356be974ee
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
im_setting_list/input_method_setting_list_popup_view.cpp
im_setting_selector/input_method_setting_selector_ui.cpp

index b6a5032..fc25320 100644 (file)
@@ -350,7 +350,7 @@ static void im_setting_list_screen_create(void *data)
     Elm_Genlist_Item_Class *ttc = elm_genlist_item_class_new();
 
     ad = (appdata *) data;
-    if (ad == NULL) return;
+    if (ad == NULL || !ttc) return;
 
     ttc->item_style = "title";
     ttc->func.text_get = im_setting_list_default_keyboard_title_text_get;
index f85e101..6681c8d 100755 (executable)
@@ -452,7 +452,7 @@ static void im_setting_selector_screen_create(void *data)
     Elm_Genlist_Item_Class *ttc = elm_genlist_item_class_new();
 
     ad = (appdata *) data;
-    if (ad == NULL) return;
+    if (ad == NULL || !ttc) return;
 
     ttc->item_style = "title";
     ttc->func.text_get = im_setting_selector_title_text_get;