diff --git a/packages/fps-importer/index.ts b/packages/fps-importer/index.ts index 40a877bda..115857f33 100644 --- a/packages/fps-importer/index.ts +++ b/packages/fps-importer/index.ts @@ -70,7 +70,7 @@ class FpsProblemImportHandler extends Handler { let c = node; if (node.$?.name) { id = node.$.name; - c = node._; + c = node._ || ''; } tasks.push(ProblemModel.addTestdata(domainId, pid, `${id}.${ext}`, Buffer.from(c))); };