{
Evas_Object *parent, *parent2, *o;
- if (sd->focused) return;
- if (sd->disabled) return;
- if (!sd->can_focus) return;
- if (sd->tree_unfocusable) return;
+ //TIZEN_ONLY(20230904) efl_ui_widget: Add null checks in _efl_ui_widget_focus_steal
+ if (sd)
+ {
+ if (sd->focused) return;
+ if (sd->disabled) return;
+ if (!sd->can_focus) return;
+ if (sd->tree_unfocusable) return;
+ }
+ EINA_SAFETY_ON_NULL_RETURN(obj);
parent = obj;
for (;; )
{
o = elm_widget_parent_get(parent);
if (!o) break;
sd = efl_data_scope_get(o, MY_CLASS);
- if (sd->disabled || sd->tree_unfocusable) return;
- if (sd->focused) break;
+ if (sd)
+ {
+ if (sd->disabled || sd->tree_unfocusable) return;
+ if (sd->focused) break;
+ }
+ //
parent = o;
}
if ((!elm_widget_parent_get(parent)))