Check if descriptors exist (i.e. if edje_init() was run) before trying to use them.
SVN revision: 11596
This commit is contained in:
parent
7e672d79f8
commit
cbbc9f38fc
|
@ -437,6 +437,13 @@ _edje_file_add(Edje *ed)
|
|||
Evas_List *l;
|
||||
int id = -1;
|
||||
|
||||
if (_edje_edd_edje_file == NULL)
|
||||
{
|
||||
printf("EDJE ERROR: NULL data descriptor. Did you edje_init()?.\n");
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
ed->file = evas_hash_find(_edje_file_hash, ed->path);
|
||||
if (ed->file)
|
||||
ed->file->references++;
|
||||
|
|
Loading…
Reference in New Issue