eo: remove potentional NULL dereferencing

Summary: this patch removes a potentional NULL dereferencing

Reviewers: jsuya, Hermet

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11325
This commit is contained in:
Wonki Kim 2020-02-12 16:47:33 +09:00 committed by Hermet Park
parent 7417436526
commit 8e6e1860c3
1 changed files with 1 additions and 0 deletions

View File

@ -1939,6 +1939,7 @@ _efl_object_event_future_scheduler_get(const Eo *obj, Efl_Object_Data *pd, Efl_C
if (!array) return NULL;
ext = _efl_object_extension_need(pd);
EINA_SAFETY_ON_NULL_RETURN(ext);
// First lookup for an existing scheduler that match the provided array
if (!ext->schedulers) ext->schedulers = eina_hash_pointer_new(_futures_cancel_cb);