You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/08 01:10:33 UTC
[jira] Closed: (VELOCITY-99) NullPointerException thrown when using
== instead of = in #set directive
[ https://issues.apache.org/jira/browse/VELOCITY-99?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henning Schmiedehausen closed VELOCITY-99.
------------------------------------------
> NullPointerException thrown when using == instead of = in #set directive
> ------------------------------------------------------------------------
>
> Key: VELOCITY-99
> URL: https://issues.apache.org/jira/browse/VELOCITY-99
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.3-rc1
> Environment: Operating System: All
> Platform: PC
> Reporter: Dave Peixotto
> Assigned To: Velocity-Dev List
>
> When using == instead of = inside a #set directive a NullPointerException is
> thrown. For example,
> #set($dave == "aCoolGuy")
> will cause an NPE to be thrown. The syntax is obviously wrong, but Velocity
> should give a helpful error message, or at least some kind of error message
> rather than throwing an NPE.
> The relevant portion of the stack trace has been included below:
> java.lang.NullPointerException
> at
> org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:135)
> at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:271)
> at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:358)
> at org.apache.velocity.app.VelocityEngine.evaluate(VelocityEngine.java:252)
--
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