Hi there,
I believe this might be a bug in the 1.5 parser
Trying to parse this:
show rsvp interface #if($tunnel-number) tunnel-te $tunnel-number #endif
I am getting this:
java.lang.NullPointerException
at org.apache.velocity.runtime.parser.Parser.Directive(Parser.java:672)
at org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:320)
at org.apache.velocity.runtime.parser.Parser.IfStatement(Parser.java:1453)
at org.apache.velocity.runtime.parser.Parser.Statement(Parser.java:293)
at org.apache.velocity.runtime.parser.Parser.process(Parser.java:258)
I guess this should be a ParseException, not a NPE.
Obviously the #endif should have been #{end} but the NPE was throwing our
environment into a funny state.
I tried to submit a bug via JIRA but it didn't seem clear how to.
cheers,
josh