fix(接口定义): 导入Jmeter格式接口失败

Closes #10477
This commit is contained in:
shiziyuan9527 2022-02-14 16:11:29 +08:00 committed by shiziyuan9527
parent 0bdc7b0fed
commit 305c8d1066
1 changed files with 3 additions and 1 deletions

View File

@ -111,7 +111,9 @@ public class JmeterDefinitionParser extends ApiImportAbstractParser<ApiDefinitio
apiTestCase.setPriority("P0");
definitionCases.add(apiTestCase);
element.getHashTree().clear();
if (element.getHashTree() != null) {
element.getHashTree().clear();
}
apiDefinitionWithBLOBs.setRequest(JSON.toJSONString(element));
definitions.add(apiDefinitionWithBLOBs);
}