diff --git a/scene/gui/tree.cpp b/scene/gui/tree.cpp index b10e16afc62..59e218de6f3 100644 --- a/scene/gui/tree.cpp +++ b/scene/gui/tree.cpp @@ -2152,8 +2152,9 @@ void Tree::_go_down() { TreeItem *next = NULL; if (!selected_item) { - next = hide_root ? root->get_next_visible() : root; - selected_item = 0; + if (root) { + next = hide_root ? root->get_next_visible() : root; + } } else { next = selected_item->get_next_visible();