fix: tcp脚本为空,不传脚本

This commit is contained in:
chenjianxing 2021-01-26 20:50:47 +08:00
parent 00eadc527f
commit 55ed001b16
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public class MsTCPSampler extends MsTestElement {
samplerHashTree.add(tcpConfig());
tree.set(tcpSampler(config), samplerHashTree);
setUserParameters(samplerHashTree);
if (tcpPreProcessor != null) {
if (tcpPreProcessor != null && StringUtils.isNotBlank(tcpPreProcessor.getScript())) {
samplerHashTree.add(tcpPreProcessor.getJSR223PreProcessor());
}
if (CollectionUtils.isNotEmpty(hashTree)) {