diff --git a/editor/docks/filesystem_dock.cpp b/editor/docks/filesystem_dock.cpp index 1a663d069aa..f46baf302f0 100644 --- a/editor/docks/filesystem_dock.cpp +++ b/editor/docks/filesystem_dock.cpp @@ -2032,6 +2032,7 @@ void FileSystemDock::_before_move(HashMap &r_uids, Hash } } else { EditorFileSystemDirectory *current_folder = EditorFileSystem::get_singleton()->get_filesystem_path(to_move[i].path); + ERR_CONTINUE(current_folder == nullptr); List folders; folders.push_back(current_folder); while (folders.front()) {