velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aéris <>
Subject NPE on a custom Velocity Tool
Date Sun, 24 Apr 2011 19:16:53 GMT

I experiment some trouble with a custom tool for Velocity
My code is here:

But when I try to evaluate this template:
I get a NPE:

If I run into debug, seems my « resources » parameter on Formatter class is 
null, but presents on Velocity context.

If try to evaluate this template:
the output is correct and equals to « toString » on my resource, showing 
Velocity context seems good…

What I do wrong with my custom tools and how to fix this NPE?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message