Check if descriptors exist (i.e. if edje_init() was run) before trying to use them.

SVN revision: 11596
This commit is contained in:
rephorm 2004-09-09 21:55:32 +00:00 committed by rephorm
parent 7e672d79f8
commit cbbc9f38fc
1 changed files with 7 additions and 0 deletions

View File

@ -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++;