[prev in list] [next in list] [prev in thread] [next in thread] 

List:       velocity-dev
Subject:    [jira] Commented: (VELOCITY-717) Engine throws an NPE using custom
From:       "Nathan Bubna (JIRA)" <dev () velocity ! apache ! org>
Date:       2010-04-21 14:17:49
Message-ID: 31439840.115301271859469644.JavaMail.jira () thor
[Download RAW message or body]


    [ https://issues.apache.org/jira/browse/VELOCITY-717?page=com.atlassian.jira.plugi \
n.system.issuetabpanels:comment-tabpanel&focusedCommentId=12859363#action_12859363 ] 

Nathan Bubna commented on VELOCITY-717:
---------------------------------------

Well, we have other unreleased fixes in the 1.6 branch, might as well fix this too.  \
Perhaps we can muster the votes and effort for a 1.6.4 release.

> Engine throws an NPE using custom macro libs if the IncludeEventHandler returns \
>                 null
> ------------------------------------------------------------------------------------
>  
> Key: VELOCITY-717
> URL: https://issues.apache.org/jira/browse/VELOCITY-717
> Project: Velocity
> Issue Type: Bug
> Components: Engine
> Affects Versions: 1.6.2
> Environment: Suse Linux
> Reporter: Johann Weber
> Assignee: Will Glass-Husain
> Priority: Critical
> Fix For: 1.7
> 
> Attachments: macros2.vm, test8.vm, Velocity717TestCase.java
> 
> 
> The Engine throws an NPE if the IncludeEventHandler returns null.
> (using merge method with a list of macro libs)
> java.lang.NullPointerException
> > > at java.util.Hashtable.get(Hashtable.java:333)
> > > at org.apache.velocity.runtime.VelocimacroManager.getNamespace(VelocimacroManager.java:318)
> > >  at org.apache.velocity.runtime.VelocimacroManager.get(VelocimacroManager.java:215)
> > >  at org.apache.velocity.runtime.VelocimacroFactory.getVelocimacro(VelocimacroFactory.java:563)
> > >  at org.apache.velocity.runtime.RuntimeInstance.getVelocimacro(RuntimeInstance.java:1563)
> > >  at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:218)
> > >  at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
> > >  at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> > >  at org.apache.velocity.runtime.directive.Parse.render(Parse.java:260)
> > > at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:175)
> > >  at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336)
> > >  at org.apache.velocity.Template.merge(Template.java:328)

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic