tasn pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=79399c08feebc99399769b39475e0133969c3473

commit 79399c08feebc99399769b39475e0133969c3473
Author: Tom Hacohen <t...@stosb.com>
Date:   Tue Dec 8 12:51:23 2015 +0000

    Genlist: Add NULL item check to *_item_next_get().
    
    It's there for _item_prev_get(), so I guess it's expected.
---
 src/lib/elm_genlist.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c
index 5f3c94e..cb42c92 100644
--- a/src/lib/elm_genlist.c
+++ b/src/lib/elm_genlist.c
@@ -6565,6 +6565,7 @@ _elm_genlist_last_item_get(Eo *obj EINA_UNUSED, 
Elm_Genlist_Data *sd)
 EOLIAN static Elm_Object_Item *
 _elm_genlist_item_next_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
 {
+   if (!it) return NULL;
    ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
 
    if (!sd->filter)

-- 


Reply via email to