cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=e06e03f2200c1ed33a46369c01f3c6ca311f37e8

commit e06e03f2200c1ed33a46369c01f3c6ca311f37e8
Author: Yeongjong Lee <[email protected]>
Date:   Tue Sep 17 09:15:05 2019 +0000

    efl_ui_collection: fix null pointer dereferences
    
    This will fix Coverity issue.
    
    Reviewed-by: Mike Blumenkrantz <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D9986
---
 src/lib/elementary/efl_ui_collection.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/elementary/efl_ui_collection.c 
b/src/lib/elementary/efl_ui_collection.c
index 1763b65195..718f5b120e 100644
--- a/src/lib/elementary/efl_ui_collection.c
+++ b/src/lib/elementary/efl_ui_collection.c
@@ -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;
 }

-- 


Reply via email to