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

#@foo causes an NPE

    XMLWordPrintableJSON

Details

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

    Description

      The following syntax (without #end) causes an NPE: "#@foo"

      class java.lang.NullPointerException
      apache.velocity.runtime.parser.node.SimpleNode.jjtGetChild(SimpleNode.java:183)
      org.apache.velocity.runtime.directive.BlockMacro.init(BlockMacro.java:107)
      org.apache.velocity.runtime.parser.node.ASTDirective.init(ASTDirective.java:138)
      org.apache.velocity.runtime.parser.node.SimpleNode.init(SimpleNode.java:309)
      org.apache.velocity.Template.initDocument(Template.java:218)
      org.apache.velocity.Template.process(Template.java:126)

      Attachments

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

        Issue Links

          Activity

            People

              Unassigned Unassigned
              byronvf Byron Foster
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: