Sergiu Dumitriu wrote:
Simple. $xwiki.getDocument returns null if you
can't access that
document. #set($var = null) will leave $var to its previous value
(velocity feature, can be configured to allow setting null, but it is
not allowed by default).
Thanks Sergiu. It is easy to understand now.
By the way, do you use some Velocity debugger, if any is available...