[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to