ami pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=ecd89e0591a8cb37012705afa7a78ff3491fcac0

commit ecd89e0591a8cb37012705afa7a78ff3491fcac0
Author: Amitesh Singh <[email protected]>
Date:   Sun Mar 26 20:44:09 2017 +0530

    gengrid: fix the crash in _elm_gengrid_item_edge_check
    
    _elm_gengrid_item_edge_check can have eo_it as NULL if none of widget item
    is focused. This could happen if item_focus is not enabled on items.
    
    test case: elm test -> gengrid 2 (enable only "focus hightligt set") and 
move focus.
    
    @fix
    
    Signed-off-by: Amitesh Singh <[email protected]>
---
 src/lib/elementary/elm_gengrid.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elementary/elm_gengrid.c b/src/lib/elementary/elm_gengrid.c
index 3acfa4d..9a2c61d 100644
--- a/src/lib/elementary/elm_gengrid.c
+++ b/src/lib/elementary/elm_gengrid.c
@@ -2699,6 +2699,7 @@ static Eina_Bool
 _elm_gengrid_item_edge_check(Elm_Object_Item *eo_it,
                              Elm_Focus_Direction dir)
 {
+   if (!eo_it) return EINA_FALSE;
    ELM_GENGRID_ITEM_DATA_GET(eo_it, it);
    ELM_GENGRID_ITEM_CHECK_OR_RETURN(it, EINA_FALSE);
    ELM_GENGRID_DATA_GET(WIDGET(it), sd);

-- 


Reply via email to