zmike pushed a commit to branch efl-1.22.

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

commit f1426fa2fcde1cc760ad5d5c1346793848897c2c
Author: Marcel Hollerbach <[email protected]>
Date:   Fri Apr 26 18:50:59 2019 +0200

    efl_ui_widget: error on NULL passing
    
    Reviewed-by: Cedric BAIL <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D8747
---
 src/lib/elementary/efl_ui_widget.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/lib/elementary/efl_ui_widget.c 
b/src/lib/elementary/efl_ui_widget.c
index 872e32a744..2180aeec61 100644
--- a/src/lib/elementary/efl_ui_widget.c
+++ b/src/lib/elementary/efl_ui_widget.c
@@ -1485,7 +1485,6 @@ _efl_ui_widget_widget_sub_object_add(Eo *obj, 
Elm_Widget_Smart_Data *sd, Evas_Ob
 {
    Efl_Ui_Widget *parent;
 
-   if (!sobj) return EINA_FALSE;
    EINA_SAFETY_ON_FALSE_RETURN_VAL(efl_isa(sobj, EFL_GFX_ENTITY_INTERFACE), 
EINA_FALSE);
    EINA_SAFETY_ON_TRUE_RETURN_VAL(obj == sobj, EINA_FALSE);
 

-- 


Reply via email to