From a25dac3ecc06b9c2c465405dbfadb0945ded8d7c Mon Sep 17 00:00:00 2001 From: Jaehwan Kim Date: Mon, 31 Aug 2015 16:21:26 +0900 Subject: [PATCH] gengrid: fix crash issue. Sometimes the focused_item can be null. @fix Change-Id: Ieb40d81cbdec7993617dfa7d1880d47567226780 origin: upstream --- src/lib/elm_gengrid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c index 35f9c49..49dff36 100644 --- a/src/lib/elm_gengrid.c +++ b/src/lib/elm_gengrid.c @@ -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 && -- 2.7.4