forked from enlightenment/efl
efl_ui_focus_manager_calc: do not crash for the case of a invalid child
This commit is contained in:
parent
8fa22f2ab7
commit
28201f32a6
|
@ -1951,6 +1951,8 @@ _efl_ui_focus_manager_calc_efl_ui_focus_manager_request_subchild(Eo *obj, Efl_Ui
|
|||
Node *child, *target;
|
||||
|
||||
child = node_get(obj, pd, child_obj);
|
||||
if (!child) return NULL;
|
||||
|
||||
target = _request_subchild(child);
|
||||
|
||||
if (target) return target->focusable;
|
||||
|
|
Loading…
Reference in New Issue