efl_ui_collection: fix null pointer dereferences

This will fix Coverity issue.

Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Differential Revision: https://phab.enlightenment.org/D9986
This commit is contained in:
Yeongjong Lee 2019-09-17 09:15:05 +00:00 committed by Cedric Bail
parent 21fe2bdc41
commit e06e03f220
1 changed files with 1 additions and 0 deletions

View File

@ -960,6 +960,7 @@ _efl_ui_collection_efl_ui_widget_focus_manager_focus_manager_create(Eo *obj, Efl
Eo *man = efl_add(EFL_UI_COLLECTION_FOCUS_MANAGER_CLASS, obj,
efl_ui_focus_manager_root_set(efl_added, root));
Efl_Ui_Collection_Focus_Manager_Data *fm_pd = efl_data_scope_safe_get(man, EFL_UI_COLLECTION_FOCUS_MANAGER_CLASS);
EINA_SAFETY_ON_NULL_RETURN_VAL(fm_pd, NULL);
fm_pd->collection = obj;
return man;
}