jce created FREEMARKER-108:
------------------------------

             Summary: NPE while getting TemplateException message body
                 Key: FREEMARKER-108
                 URL: https://issues.apache.org/jira/browse/FREEMARKER-108
             Project: Apache Freemarker
          Issue Type: Bug
    Affects Versions: 2.3.28
            Reporter: jce


Hi, I have some issue in ftl template, but exception is not clear. Processing 
of TemplateException fall on NPE:
{quote}{{Caused by: java.lang.NullPointerException}}
{{ at freemarker.core.BuiltIn.getCanonicalForm(BuiltIn.java:387)}}
{{ at 
freemarker.core.DesanitizeLegacyEscapingBIWrapper.getCanonicalForm(DesanitizeLegacyEscapingBIWrapper.java:24)}}
{{ at freemarker.core.DollarVariable.dump(DollarVariable.java:108)}}
{{ at freemarker.core.Interpolation.dump(Interpolation.java:29)}}
{{ at freemarker.core.TemplateElement.getDescription(TemplateElement.java:95)}}
{{ at 
freemarker.core.Environment.appendInstructionStackItem(Environment.java:2208)}}
{{ at 
freemarker.core.Environment.instructionStackItemToString(Environment.java:2203)}}
{{ at 
freemarker.core.Environment.outputInstructionStack(Environment.java:2123)}}
{{ at freemarker.core._CoreAPI.outputInstructionStack(_CoreAPI.java:157)}}
{{ at 
freemarker.template.TemplateException.getFTLInstructionStackTopFew(TemplateException.java:262)}}
{{ at 
freemarker.template.TemplateException.renderMessages(TemplateException.java:180)}}
{{ at 
freemarker.template.TemplateException.getMessage(TemplateException.java:442)}}
{quote}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to