mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 07:53:26 +00:00
Fix crash due to null pointer dereference when moving/renaming folders in FileSystemDock
(cherry picked from commit 4e3a39a2e8
)
This commit is contained in:
parent
1c078fee01
commit
83a78186ca
1 changed files with 1 additions and 0 deletions
|
@ -2033,6 +2033,7 @@ void FileSystemDock::_before_move(HashMap<String, ResourceUID::ID> &r_uids, Hash
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
EditorFileSystemDirectory *current_folder = EditorFileSystem::get_singleton()->get_filesystem_path(to_move[i].path);
|
EditorFileSystemDirectory *current_folder = EditorFileSystem::get_singleton()->get_filesystem_path(to_move[i].path);
|
||||||
|
ERR_CONTINUE(current_folder == nullptr);
|
||||||
List<EditorFileSystemDirectory *> folders;
|
List<EditorFileSystemDirectory *> folders;
|
||||||
folders.push_back(current_folder);
|
folders.push_back(current_folder);
|
||||||
while (folders.front()) {
|
while (folders.front()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue