edje_edit: add null checking

This commit is contained in:
Jaehwan Kim 2016-09-20 13:46:29 +09:00
parent 1bfb19b457
commit 3efdd5df54
1 changed files with 2 additions and 0 deletions

View File

@ -2905,6 +2905,7 @@ edje_edit_external_add(Evas_Object *obj, const char *external)
if (!ed->file->external_dir)
ed->file->external_dir = _alloc(sizeof(Edje_External_Directory));
if (!ed->file->external_dir) return EINA_FALSE;
for (i = 0; i < ed->file->external_dir->entries_count; ++i)
if (!ed->file->external_dir->entries[i].entry)
@ -12555,6 +12556,7 @@ edje_edit_source_generate(Evas_Object *obj)
{
es = eina_hash_find(ed->file->data, entry);
str = edje_string_get(es);
if (!str) break;
data_len = strlen(str);
/* In case when data ends with '\n' character, this item recognize
* as data.file. This data will not generated into the source code