forked from enlightenment/efl
edje_edit: add null check for return of eina_hash_find
Summary: to prevent null pointer dereference Test Plan: N/A Reviewers: cedric, jsuya Reviewed By: jsuya Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D12094
This commit is contained in:
parent
bab3f870b8
commit
39e9740fca
|
@ -6292,6 +6292,7 @@ _edje_edit_state_alloc(int type, Edje *ed)
|
|||
Edje_Part_Description_Common *pd = NULL;
|
||||
|
||||
ce = eina_hash_find(ed->file->collection, ed->group);
|
||||
if (!ce) return NULL;
|
||||
|
||||
switch (type)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue