From 5a8cb3f4e9a72cb60a8d9d5de43b86e52069e4b2 Mon Sep 17 00:00:00 2001 From: "David E. Jones" Date: Sun, 14 Jan 2007 23:47:48 +0000 Subject: [PATCH] Changed FreeMarkerWorker to remove entry named null from context before processing the template with it git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@496193 13f79535-47bb-0310-9956-ffa450edef68 --- .../base/org/ofbiz/base/util/template/FreeMarkerWorker.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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); }