freemarkers skip assertNonNull InvalidReferenceException
问题 I render a list of Objects with freemarker: <ul> <#list publication as item> <li><b>${item.key}</b> : ${item.value}</li> </#list> </ul> but some of the item have a item.value null that raises the exception: freemarker.core.InvalidReferenceException: Expression item.value is undefined on line 12, column 44 in mailTemplate. at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125) at freemarker.core.Expression.getStringValue(Expression.java:118) I would like that freemarker