fix(性能测试): 修复文件可能为空的问题
This commit is contained in:
parent
8ce0b405d0
commit
3ec4d92e94
|
@ -286,6 +286,9 @@ public class JmeterDocumentParser implements DocumentParser {
|
|||
int resourceIndex = context.getResourceIndex();
|
||||
String filename = item.getTextContent();
|
||||
byte[] content = context.getTestResourceFiles().get(filename);
|
||||
if (content == null) {
|
||||
return;
|
||||
}
|
||||
StringTokenizer tokenizer = new StringTokenizer(new String(content), "\n");
|
||||
if (!tokenizer.hasMoreTokens()) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue