fix(性能测试): 修复配置csv分割配置报null的问题

This commit is contained in:
CaptainB 2023-08-01 10:29:43 +08:00 committed by 刘瑞斌
parent 3148369c70
commit d0075a710d

View File

@ -264,6 +264,9 @@ public class JmeterDocumentParser implements EngineSourceParser {
} }
StringBuilder csv = new StringBuilder(); StringBuilder csv = new StringBuilder();
Object config = ((Map) csvConfig).get(filename); Object config = ((Map) csvConfig).get(filename);
if (config == null) {
return;
}
Boolean csvSplit = (Boolean) ((Map) (config)).get("csvSplit"); Boolean csvSplit = (Boolean) ((Map) (config)).get("csvSplit");
if (!BooleanUtils.toBoolean(csvSplit)) { if (!BooleanUtils.toBoolean(csvSplit)) {
return; return;