From c640018b88e614ac863d2b88ca8530207388e26f Mon Sep 17 00:00:00 2001 From: Saracen Date: Mon, 30 Oct 2023 22:52:12 +0000 Subject: [PATCH] Fix crash on rename collision in thumbnail grid --- editor/filesystem_dock.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/editor/filesystem_dock.cpp b/editor/filesystem_dock.cpp index ea043b42d12..0aa8ef66e75 100644 --- a/editor/filesystem_dock.cpp +++ b/editor/filesystem_dock.cpp @@ -1790,7 +1790,9 @@ void FileSystemDock::_rename_operation_confirm() { } if (new_exist) { EditorNode::get_singleton()->show_warning(TTR("A file or folder with this name already exists.")); - ti->set_text(col_index, old_name); + if (ti) { + ti->set_text(col_index, old_name); + } return; }