fix(接口测试): 修复场景变量为空值时Log中输出为null问题#12350

https://github.com/metersphere/metersphere/issues/12350
This commit is contained in:
fit2-zhao 2022-04-07 15:54:08 +08:00 committed by 刘瑞斌
parent a3ec0c58e7
commit 2fbfd408b6

View File

@ -53,7 +53,7 @@ public class ScenarioVariable {
}
public boolean isConstantValid() {
if ((StringUtils.isEmpty(this.type) || StringUtils.equals(this.type, VariableTypeConstants.CONSTANT.name())) && StringUtils.isNotEmpty(name) && StringUtils.isNotEmpty(value)) {
if ((StringUtils.isEmpty(this.type) || StringUtils.equals(this.type, VariableTypeConstants.CONSTANT.name())) && StringUtils.isNotEmpty(name)) {
return true;
}
return false;