diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/unknown/MsJmeterElement.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/unknown/MsJmeterElement.java index 0d57be5d8a..eff991fe79 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/unknown/MsJmeterElement.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/unknown/MsJmeterElement.java @@ -80,7 +80,7 @@ public class MsJmeterElement extends MsTestElement { // 取出导入的测试计划中变量 if (scriptWrapper instanceof TestPlan) { TestPlan testPlan = (TestPlan) scriptWrapper; - if (testPlan.getArguments() != null) { + if (testPlan.getArguments() != null && StringUtils.isNotEmpty(testPlan.getArguments().getName())) { elementTree.add(testPlan.getArguments()); } }