efl_ui_focus_manager_calc: node depth is 0 for a NULL object

This commit is contained in:
Marcel Hollerbach 2018-04-04 10:11:22 +02:00
parent 62c2f49487
commit 39739ba333
1 changed files with 1 additions and 1 deletions

View File

@ -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++;