Fix crash due to null pointer dereference when moving/renaming folders in FileSystemDock

This commit is contained in:
Artemy Fedotov 2025-09-11 14:25:49 +04:00
parent 3c7f9b9372
commit 4e3a39a2e8
No known key found for this signature in database
GPG key ID: C98F659A7C4525DA

View file

@ -2032,6 +2032,7 @@ void FileSystemDock::_before_move(HashMap<String, ResourceUID::ID> &r_uids, Hash
}
} else {
EditorFileSystemDirectory *current_folder = EditorFileSystem::get_singleton()->get_filesystem_path(to_move[i].path);
ERR_CONTINUE(current_folder == nullptr);
List<EditorFileSystemDirectory *> folders;
folders.push_back(current_folder);
while (folders.front()) {