Summary: found by coverity
Reviewers: Hermet
Reviewed By: Hermet
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D7108
if (rel->item->items)
{
Eina_List *ll = _list_last_recursive(rel->item->items);
- eo_rel = ll->data;
- rel = efl_data_scope_get(eo_rel, ELM_GENLIST_ITEM_CLASS);
+ if (ll)
+ {
+ eo_rel = ll->data;
+ rel = efl_data_scope_get(eo_rel, ELM_GENLIST_ITEM_CLASS);
+ }
}
sd->items = eina_inlist_append_relative
(sd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(rel));