Skip to content

Commit 4e3a39a

Browse files
committed
Fix crash due to null pointer dereference when moving/renaming folders in FileSystemDock
1 parent 3c7f9b9 commit 4e3a39a

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

0 commit comments

Comments
 (0)