Avoid using a nullptr root in Tree._range_click_timeout().
@@ -2155,6 +2155,10 @@ void Tree::_range_click_timeout() {
}
+ if (!root) {
+ return;
+ }
+
click_handled = false;
Ref<InputEventMouseButton> mb;
mb.instantiate();