Unverified Commit 88a8f9ab by Rémi Verschelde Committed by GitHub

Merge pull request #33557 from nekomatata/empty-tree-crash

Fixed crash when pressing down key on empty Tree
parents ba4c8087 47a4ca00
......@@ -2224,8 +2224,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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment