From 2fbfd408b663e30de50771e96ad27d2de1d9af9f Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 7 Apr 2022 15:54:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=8F=98=E9=87=8F=E4=B8=BA?= =?UTF-8?q?=E7=A9=BA=E5=80=BC=E6=97=B6Log=E4=B8=AD=E8=BE=93=E5=87=BA?= =?UTF-8?q?=E4=B8=BAnull=E9=97=AE=E9=A2=98#12350?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/metersphere/metersphere/issues/12350 --- .../api/dto/definition/request/variable/ScenarioVariable.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/main/java/io/metersphere/api/dto/definition/request/variable/ScenarioVariable.java b/backend/src/main/java/io/metersphere/api/dto/definition/request/variable/ScenarioVariable.java index 4ed0188566..d97c203110 100644 --- a/backend/src/main/java/io/metersphere/api/dto/definition/request/variable/ScenarioVariable.java +++ b/backend/src/main/java/io/metersphere/api/dto/definition/request/variable/ScenarioVariable.java @@ -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;