Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-727

ArrayIndexOutOfBoundsException when #define without parameter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.2
    • 1.7
    • Engine
    • None

    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

      Attachments

        1. velocity-727.patch
          3 kB
          Jarkko Viinamäki

        Activity

          People

            Unassigned Unassigned
            siri Siri C.
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: