[ 
https://issues.apache.org/jira/browse/FREEMARKER-165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dániel Dékány closed FREEMARKER-165.
------------------------------------

> NullPointerException (at freemarker.core.BlockAssignment.accept:62)
> -------------------------------------------------------------------
>
>                 Key: FREEMARKER-165
>                 URL: https://issues.apache.org/jira/browse/FREEMARKER-165
>             Project: Apache Freemarker
>          Issue Type: Bug
>          Components: engine
>    Affects Versions: 2.3.28
>         Environment: Windows 10; fmpp / http://fmpp.sourceforge.net/ (v0.9.16 
> per March, 10th 2020)
>            Reporter: Torsten Rendelmann
>            Priority: Major
>             Fix For: 2.3.31
>
>
> Have a xxx.ftl with only this content:
>  {{<#assign VersionMajor{color:#de350b} in doc{color}>1</#assign>}}
>   
>  Try to processing this with fmpp results in this error message:
> - Executing: xxx.ftl
>  !!! FAILED
> >>> ABORTED! <<<
> 0 executed + 0 rendered + 0 copied = 0 successfully processed
> 1 failed, 0 warning(s)
> Time elapsed: 0.077 seconds
> Error when processing this file: xxx.ftl
> java.lang.NullPointerException (at freemarker.core.BlockAssignment.accept:62)
> The reason is the assignment of the variable, expected to be defined in 
> another (not yet included template). Remove the text marked as 
> {color:#de350b}red{color} and it succeeds.
> *Expected*: not an NPE, but a useful error message pointing to the problem.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to