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
Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
/* set this to block _sizing_eval() calls */
pd->delete_me = EINA_TRUE;
bd = evas_object_smart_data_get(wd->resize_obj);
- EINA_LIST_FOREACH (bd->children, l, opt)
- children = eina_list_append(children, opt->obj);
+ if (bd)
+ {
+ EINA_LIST_FOREACH (bd->children, l, opt)
+ children = eina_list_append(children, opt->obj);
+ }
pd->delete_me = EINA_FALSE;
/* EINA_FALSE means do not delete objects */