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";