From b6c30860b267f1dd5f510a21ad6f76999594f30d Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Sun, 31 Oct 2010 12:27:25 +0900 Subject: [PATCH] [elm_genlist.c] Added parameter verification routine. --- src/lib/elm_genlist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/elm_genlist.c b/src/lib/elm_genlist.c index 3377df8..c01a48a 100644 --- a/src/lib/elm_genlist.c +++ b/src/lib/elm_genlist.c @@ -4089,9 +4089,10 @@ elm_genlist_item_subitems_clear(Elm_Genlist_Item *it) EAPI void elm_genlist_item_selected_set(Elm_Genlist_Item *it, Eina_Bool selected) { + if (!it) return; + ELM_CHECK_WIDTYPE(it->wd->obj, widtype); Widget_Data *wd = elm_widget_data_get(it->wd->obj); if (!wd) return; - if (!it) return; if (it->delete_me) return; selected = !!selected; if (it->selected == selected) return; -- 2.7.4