prevent:469390 - add null check 00/49500/1
authorSoohye Shin <soohye.shin@samsung.com>
Wed, 14 Oct 2015 05:39:43 +0000 (14:39 +0900)
committerSoohye Shin <soohye.shin@samsung.com>
Wed, 14 Oct 2015 05:39:43 +0000 (14:39 +0900)
Change-Id: I040f681cd412514b4b6831ffdc5501572002b3e3
Signed-off-by: Soohye Shin <soohye.shin@samsung.com>
src/view/view_user_edit.c

index 2f3327f..d2cb707 100644 (file)
@@ -591,6 +591,11 @@ static void _select_eo(struct _priv *priv, Evas_Object *obj)
        _delete_ctxpopup(priv);
 
        file = evas_object_data_get(obj, KEY_ICON);
+       if (!file) {
+               _ERR("failed to get file");
+               return;
+       }
+
        focus_file = utils_get_focus_photo_from_photo(file);
 
        if (!strcmp(file, ICON_ADD) || !strcmp(focus_file, ICON_ADD)) {