-
Bug
-
Resolution: Done
-
Major
-
4.2.0-SNAPSHOT
-
None
-
None
see reproduction.
resulting error:
11:23:20,717 SEVERE [freemarker.runtime] (/reports/templates/dependency_graph.ftl_dependency_graph_report.2.html) Error executing FreeMarker template: freemarker.core.InvalidReferenceException: The following has evaluated to null or missing: ==> reportModel.projectModel.rootFileModel.SHA1Hash [in template "reports/templates/dependency_graph.ftl" at line 135, column 29] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: ${reportModel.projectModel.rootFileMo... [in template "reports/templates/dependency_graph.ftl" at line 135, column 27] ---- at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:134) at freemarker.core.EvalUtil.coerceModelToTextualCommon(EvalUtil.java:465) at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:387) at freemarker.core.EvalUtil.coerceModelToStringOrMarkup(EvalUtil.java:356) at freemarker.core.DollarVariable.calculateInterpolatedStringOrMarkup(DollarVariable.java:96) at freemarker.core.DollarVariable.accept(DollarVariable.java:59) at freemarker.core.Environment.visit(Environment.java:326) at freemarker.core.Environment.visit(Environment.java:332) at freemarker.core.Environment.visit(Environment.java:332) at freemarker.core.Environment.process(Environment.java:305) at freemarker.template.Template.process(Template.java:378) at org.jboss.windup.reporting.freemarker.FreeMarkerIterationOperation.perform(FreeMarkerIterationOperation.java:142) at org.jboss.windup.reporting.rules.rendering.RenderReportRuleProvider$FreeMarkerThreadedRenderer$1.call(RenderReportRuleProvider.java:136) at org.jboss.windup.reporting.rules.rendering.RenderReportRuleProvider$FreeMarkerThreadedRenderer$1.call(RenderReportRuleProvider.java:120) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)