Skip to content

Commit 121b1b7

Browse files
committed
Merge pull request godotengine#110420 from fstxz/fix-folder-nullptr
Fix crash due to null pointer dereference when moving/renaming folders in `FileSystemDock`
2 parents 5fda924 + 4e3a39a commit 121b1b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

editor/docks/filesystem_dock.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2020,6 +2020,7 @@ void FileSystemDock::_before_move(HashMap<String, ResourceUID::ID> &r_uids, Hash
20202020
}
20212021
} else {
20222022
EditorFileSystemDirectory *current_folder = EditorFileSystem::get_singleton()->get_filesystem_path(to_move[i].path);
2023+
ERR_CONTINUE(current_folder == nullptr);
20232024
List<EditorFileSystemDirectory *> folders;
20242025
folders.push_back(current_folder);
20252026
while (folders.front()) {

0 commit comments

Comments
 (0)