seoz pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=b3c7cdd32f7451c388624ada98185b4b9ec9de9e
commit b3c7cdd32f7451c388624ada98185b4b9ec9de9e Author: Daniel Juyung Seo <[email protected]> Date: Tue Mar 4 00:30:44 2014 +0900 list: Check NULL before calling _elm_list_item_unfocused. unfocusing NULL item is nonsense. NULL needs to be checked before calling item unfocus function. --- src/lib/elm_list.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/lib/elm_list.c b/src/lib/elm_list.c index 59314c4..d1018c9 100644 --- a/src/lib/elm_list.c +++ b/src/lib/elm_list.c @@ -1697,12 +1697,16 @@ _item_focus_set_hook(Elm_Object_Item *it, Eina_Bool focused) elm_object_focus_set(obj, EINA_TRUE); if (it != sd->focused_item) { - _elm_list_item_unfocused((Elm_List_Item *)sd->focused_item); + if (sd->focused_item) + _elm_list_item_unfocused((Elm_List_Item *)sd->focused_item); _elm_list_item_focused((Elm_List_Item *)it); } } else - _elm_list_item_unfocused((Elm_List_Item *)it); + { + if (it) + _elm_list_item_unfocused((Elm_List_Item *)it); + } _elm_widget_focus_highlight_start(obj); } --
