Velocity Token Fail to Render? | Community
Skip to main content
Eben_Saputra
Level 3
May 13, 2019
Question

Velocity Token Fail to Render?

  • May 13, 2019
  • 1 reply
  • 1412 views

Hi guys,

Please see the sections below About the Clinic.

Wondering if you know about this problem before?

Basically the velocity tokens here doesn't seem to render for one of our clients.

This is the first time we encountered this problem.

The last modification of the program was last month, and it has ran through thousands of people. No problem until now.

We live tested this program again but it cannot reproduce the problem

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SanfordWhiteman
Level 10
May 13, 2019

Not really enough info here (especially if you're saying you can't repro this for the same client that reported it earlier).

If $SomeHashMap.get(property) returns null then Velocity will print the source code for $SomeHashMap.get(property).otherproperty

That's how VTL deals "gracefully" with intermediate nulls instead of throwing NullPointerExceptions.