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:
Bowon Ryu 2020-08-05 15:09:05 +09:00 committed by JunsuChoi
parent bab3f870b8
commit 39e9740fca
1 changed files with 1 additions and 0 deletions

View File

@ -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)
{