From e9db3711de75d5af71d2e4f43feb359e69f1be3e Mon Sep 17 00:00:00 2001 From: mxd <838425805@qq.com> Date: Sun, 17 Nov 2019 12:52:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=A1=A8=E8=BE=BE=E5=BC=8F?= =?UTF-8?q?=E5=9C=A8xxx${expr}=E6=A0=BC=E5=BC=8F=E4=B8=AD=EF=BC=8Cexpr?= =?UTF-8?q?=E4=B8=BAnull=E6=97=B6=E6=95=B4=E4=B8=AA=E8=A1=A8=E8=BE=BE?= =?UTF-8?q?=E5=BC=8F=E8=BF=94=E5=9B=9Enull=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../spiderflow/core/expression/interpreter/AstInterpreter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spider-flow-core/src/main/java/org/spiderflow/core/expression/interpreter/AstInterpreter.java b/spider-flow-core/src/main/java/org/spiderflow/core/expression/interpreter/AstInterpreter.java index c4ed52f..093934c 100644 --- a/spider-flow-core/src/main/java/org/spiderflow/core/expression/interpreter/AstInterpreter.java +++ b/spider-flow-core/src/main/java/org/spiderflow/core/expression/interpreter/AstInterpreter.java @@ -47,7 +47,7 @@ public class AstInterpreter { if(node instanceof Text){ result += node.getSpan().getText(); }else if(value == null){ - if(i + 1 == n){ + if(i == 0 && i + 1 == n){ return null; } result += "null";