summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehwan Kim <jae.hwan.kim@samsung.com>2015-08-31 16:21:26 +0900
committerJaehwan Kim <jae.hwan.kim@samsung.com>2015-08-31 16:22:54 +0900
commitc3a48a3b8ed8381d24b67c9bed42b42fa4bc468c (patch)
treedb25ac30bdf20f61d7c509b7306c055c4cef4674
parent653be323169ca2df15717571287cbe469a09b120 (diff)
downloadelementary-c3a48a3b8ed8381d24b67c9bed42b42fa4bc468c.tar.gz
gengrid: fix crash issue.
Sometimes the focused_item can be null. @fix
-rw-r--r--src/lib/elm_gengrid.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/elm_gengrid.c b/src/lib/elm_gengrid.c
index 4b98b537b..b519c2555 100644
--- a/src/lib/elm_gengrid.c
+++ b/src/lib/elm_gengrid.c
@@ -3380,6 +3380,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 &&