You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Jarkko Viinamäki (JIRA)" <de...@velocity.apache.org> on 2009/01/21 12:57:00 UTC
[jira] Updated: (VELOCITY-671) Undefined macro in block form causes
NPE
[ https://issues.apache.org/jira/browse/VELOCITY-671?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jarkko Viinamäki updated VELOCITY-671:
--------------------------------------
Attachment: velocity-671.patch
This should fix it. I forgot to initialize the Runtime macro instance properly in BlockMacro init. As a result, getTemplateName() returned null and ConcurrentHashMap didn't like that.
See the patch.
> Undefined macro in block form causes NPE
> ----------------------------------------
>
> Key: VELOCITY-671
> URL: https://issues.apache.org/jira/browse/VELOCITY-671
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.7
> Reporter: Byron Foster
> Attachments: velocity-671.patch
>
>
> And undefined macro such as:
> #@foo()#end
> Causes an NPE
--
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