ArrayIndexOutOfBoundsException when #define without parameter

Details

Description

#define()
Hello
#end

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
at org.apache.velocity.runtime.parser.node.SimpleNode.jjtGetChild(SimpleNode.java:177)
at org.apache.velocity.runtime.directive.Define.init(Define.java:96)
at org.apache.velocity.runtime.parser.node.ASTDirective.init(ASTDirective.java:125)
at org.apache.velocity.runtime.parser.node.SimpleNode.init(SimpleNode.java:303)
at org.apache.velocity.runtime.RuntimeInstance.render(RuntimeInstance.java:1254)
at org.apache.velocity.runtime.RuntimeInstance.evaluate(RuntimeInstance.java

Nathan Bubna
added a comment - 22/Jun/09 14:59 Just to make sure you know, you can't use #define without a name argument for the block you are defining.
What were you hoping/expecting to happen? A better error message? That's a fine idea, but that hardly qualifies as a "Major" bug.