修复表达式在xxx${expr}格式中,expr为null时整个表达式返回null的问题

This commit is contained in:
mxd 2019-11-17 12:52:03 +08:00
parent e10a3df8aa
commit e9db3711de

View File

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