From a854c9d42d5b207aa810ab547faa3c9cbdd7051c Mon Sep 17 00:00:00 2001 From: Bowon Ryu Date: Tue, 12 Apr 2022 14:13:41 +0900 Subject: [PATCH] efl_ui_widget: add null check for smart data Change-Id: Ic10b5170ea4da28c307367e6e58d06baf16f50e7 Signed-off-by: Bowon Ryu --- src/lib/elementary/efl_ui_widget.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/elementary/efl_ui_widget.c b/src/lib/elementary/efl_ui_widget.c index 1ce9019..53977cf 100644 --- a/src/lib/elementary/efl_ui_widget.c +++ b/src/lib/elementary/efl_ui_widget.c @@ -1986,6 +1986,7 @@ _efl_ui_widget_focus_allow_set(Eo *obj, Elm_Widget_Smart_Data *sd, Eina_Bool can Evas_Object *subobj; ELM_WIDGET_DATA_GET(parent, sdp); + if (!sdp) break; sdp->child_can_focus = EINA_FALSE; for (unsigned int i = 0; i < eina_array_count(sdp->children); ++i) -- 2.7.4