gengrid: fix crash issue. 40/47140/1 accepted/tizen/mobile/20150901.001843 accepted/tizen/tv/20150901.001859 accepted/tizen/wearable/20150901.001905 submit/tizen/20150831.073427
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 31 Aug 2015 07:21:26 +0000 (16:21 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Mon, 31 Aug 2015 07:30:56 +0000 (16:30 +0900)
Sometimes the focused_item can be null.

@fix

Change-Id: Ieb40d81cbdec7993617dfa7d1880d47567226780
origin: upstream

src/lib/elm_gengrid.c

index 35f9c49..49dff36 100644 (file)
@@ -2996,6 +2996,7 @@ _key_action_select(Evas_Object *obj, const char *params)
 {
    ELM_GENGRID_DATA_GET(obj, sd);
    Elm_Object_Item *eo_it = elm_object_focused_item_get(obj);
+   if (!eo_it) return EINA_TRUE;
    ELM_GENGRID_ITEM_DATA_GET(eo_it, it);
 
    if (sd->multi &&