[ 
https://issues.apache.org/jira/browse/VELOCITY-671?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665487#action_12665487
 ] 

Jarkko Viinamäki commented on VELOCITY-671:
-------------------------------------------

Can you create a TestCase for that?

This one seems to pass without an Exception:

    public void testUndefinedMacroWithEmptyBody() throws Exception
    {
        String template = "#...@foo()#end";
        String result = "#...@foo()#end";
    
        assertEvalEquals(result, template);
    }


> 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
>
> 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