velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbris...@apache.org
Subject svn commit: r1835855 - /velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTText.java
Date Fri, 13 Jul 2018 19:26:38 GMT
Author: cbrisson
Date: Fri Jul 13 19:26:37 2018
New Revision: 1835855

URL: http://svn.apache.org/viewvc?rev=1835855&view=rev
Log:
Fix potential NPE

Modified:
    velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTText.java

Modified: velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTText.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTText.java?rev=1835855&r1=1835854&r2=1835855&view=diff
==============================================================================
--- velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTText.java
(original)
+++ velocity/engine/trunk/velocity-engine-core/src/main/java/org/apache/velocity/runtime/parser/node/ASTText.java
Fri Jul 13 19:26:37 2018
@@ -70,6 +70,15 @@ public class ASTText extends SimpleNode
     }
 
     /**
+     * text getter
+     * @return literal representation
+     */
+    public String literal()
+    {
+        return ctext;
+    }
+    
+    /**
      * @see org.apache.velocity.runtime.parser.node.SimpleNode#jjtAccept(org.apache.velocity.runtime.parser.node.ParserVisitor,
java.lang.Object)
      */
     public Object jjtAccept(ParserVisitor visitor, Object data)



Mime
View raw message