Summary:
if 'evas_object_smart_data_get' return null somehow,
logic that dereference the smart data pointer will cause problems.
This patch prevent a potential bug in advance.
Reviewers: jpeg, woohyun, cedric
Differential Revision: https://phab.enlightenment.org/D5290
Change-Id: I3bb685468cc3bdf44bddff1c51988f8ab37e7627
Signed-off-by: Wonki Kim <wonki_.kim@samsung.com>
ELM_BOX_CHECK(obj);
bd = evas_object_smart_data_get(wd->resize_obj);
- EINA_LIST_FOREACH (bd->children, l, opt)
- _elm_widget_sub_object_redirect_to_top(obj, opt->obj);
+ if (bd)
+ {
+ EINA_LIST_FOREACH (bd->children, l, opt)
+ _elm_widget_sub_object_redirect_to_top(obj, opt->obj);
+ }
/* EINA_FALSE means to delete objects as well */
evas_object_box_remove_all(wd->resize_obj, EINA_FALSE);