eo_do(obj, eo_parent_get(&parent));
- if (!eo_isa(parent, ELM_OBJ_WIN_CLASS))
+ if (parent && !eo_isa(parent, ELM_OBJ_WIN_CLASS))
{
eo_error_set(obj); /* *has* to have a parent window */
return;
eo_do_super(eo_obj, MY_CLASS, eo_dbg_info_get(root));
ELM_WIDGET_DATA_GET_OR_RETURN(eo_obj, wd);
- if (eo_isa(wd->resize_obj, EDJE_OBJ_CLASS))
+ if (wd->resize_obj && eo_isa(wd->resize_obj, EDJE_OBJ_CLASS))
{
Eo_Dbg_Info *group = EO_DBG_INFO_LIST_APPEND(root, MY_CLASS_NAME);
const char *file, *edje_group;