Solved
Accepted solution
December 17, 2015
Found the problem:
to check for null in velocity, dont use
${variable} == ''
this wont work either
${variable} == 'null'
or any combination of quotes and what have you. What does work is a simple if:
#if ($variable)
... do stuff here if the variable is not null
#end
Cheers!