diff --git a/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java b/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java index 9192ca1c65..3bf0ddeff9 100644 --- a/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java +++ b/framework/base/src/base/org/ofbiz/base/util/template/FreeMarkerWorker.java @@ -167,9 +167,11 @@ public class FreeMarkerWorker { // add the OFBiz transforms/methods addAllOfbizTransforms(context); + + // make sure there is no "null" string in there as FreeMarker will try to use it + context.remove("null"); - // process the template with the given data and write - // the email body to the String buffer + // process the template with the given data template.process(context, outWriter); }