forked from enlightenment/efl
efl_ui_focus_manager_calc: node depth is 0 for a NULL object
This commit is contained in:
parent
62c2f49487
commit
39739ba333
|
@ -1516,7 +1516,7 @@ _node_depth(Node *node)
|
|||
{
|
||||
int i = 0;
|
||||
|
||||
while (node->tree.parent)
|
||||
while (node && node->tree.parent)
|
||||
{
|
||||
node = node->tree.parent;
|
||||
i++;
|
||||
|
|
Loading…
Reference in New Issue