[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-dev
Subject:    [jira] Updated: (VELOCITY-727) ArrayIndexOutOfBoundsException when
From:       Jarkko_Viinamäki_(JIRA) <dev () velocity ! apache ! org>
Date:       2009-12-22 12:58:29
Message-ID: 404762726.1261486709395.JavaMail.jira () brutus
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/VELOCITY-727?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Jarkko Viinamäki updated VELOCITY-727:
--------------------------------------

    Attachment: velocity-727.patch

This should fix it.

> ArrayIndexOutOfBoundsException when #define without parameter
> -------------------------------------------------------------
> 
> Key: VELOCITY-727
> URL: https://issues.apache.org/jira/browse/VELOCITY-727
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6.2
> Reporter: Siri C.
> Attachments: velocity-727.patch
> 
> 
> {code}
> #define()
> Hello 
> #end
> {code}
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic