edje/edje_edit: Check for NULL

Summary: Add check for NULL to the edje_edit_state_external_param_set function

@fix

Reviewers: cedric, raster, seoz

Reviewed By: cedric

CC: cedric, reutskiy.v.v

Differential Revision: https://phab.enlightenment.org/D584

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
This commit is contained in:
se.osadchy 2014-03-06 18:26:51 +09:00 committed by Cedric BAIL
parent b749565278
commit e60e56aada
1 changed files with 7 additions and 5 deletions

View File

@ -4336,14 +4336,16 @@ edje_edit_state_external_param_set(Evas_Object *obj, const char *part, const cha
eina_stringshare_del(sname);
}
if (!found)
if (!found && p && external->external_params)
external->external_params = eina_list_append(external->external_params, p);
_edje_external_parsed_params_free(rp->typedata.swallow->swallowed_object,
if (rp->typedata.swallow && rp->param1.external_params)
_edje_external_parsed_params_free(rp->typedata.swallow->swallowed_object,
rp->param1.external_params);
rp->param1.external_params = \
_edje_external_params_parse(rp->typedata.swallow->swallowed_object,
external->external_params);
if (rp->typedata.swallow && external->external_params)
rp->param1.external_params = \
_edje_external_params_parse(rp->typedata.swallow->swallowed_object,
external->external_params);
return EINA_TRUE;