Fixes #46648
@@ -2135,6 +2135,10 @@ void Tree::_range_click_timeout() {
}
+ if (!root) {
+ return;
+ }
+
click_handled = false;
Ref<InputEventMouseButton> mb;
mb.instantiate();