aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-26 18:50:59 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-30 20:45:49 +0200
commitea4b84053939b4ad7cd62aa9cf95449ed895deb5 (patch)
treeb89c66189755b6a7b07a9855a433376f6c2e13d3
parentefl_ui_pager: refactor object addition (diff)
downloadefl-ea4b84053939b4ad7cd62aa9cf95449ed895deb5.tar.gz
efl_ui_widget: error on NULL passing
Reviewed-by: Cedric BAIL <cedric.bail@free.fr> Differential Revision: https://phab.enlightenment.org/D8747
-rw-r--r--src/lib/elementary/efl_ui_widget.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c
index 6f41aaec24..dade58123f 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);