You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@freemarker.apache.org by "Siegfried Goeschl (Jira)" <ji...@apache.org> on 2020/08/27 20:10:00 UTC

[jira] [Commented] (FREEMARKER-108) NPE while getting TemplateException message body

    [ https://issues.apache.org/jira/browse/FREEMARKER-108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17186086#comment-17186086 ] 

Siegfried Goeschl commented on FREEMARKER-108:
----------------------------------------------

[~ddekany@freemail.hu] Can we close the ticket as INVALID?

> 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
>            Priority: Major
>
> 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
(v8.3.4#803005)