Genlist: Put null check before the deref.

CID1339825
This commit is contained in:
Tom Hacohen 2015-12-08 12:50:25 +00:00
parent 3a9d8ed30f
commit 467814278f
1 changed files with 1 additions and 1 deletions

View File

@ -6591,9 +6591,9 @@ _elm_genlist_item_next_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
EOLIAN static Elm_Object_Item *
_elm_genlist_item_prev_get(Eo *eo_it EINA_UNUSED, Elm_Gen_Item *it)
{
if (!it) return NULL;
ELM_GENLIST_DATA_GET_FROM_ITEM(it, sd);
if (!it) return NULL;
if (!sd->filter)
{
while (it)