修复表达式在xxx${expr}格式中,expr为null时整个表达式返回null的问题
This commit is contained in:
parent
e10a3df8aa
commit
e9db3711de
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user