Author: byersa
Date: Wed Oct 10 11:00:06 2007
New Revision: 583562
URL:
http://svn.apache.org/viewvc?rev=583562&view=revLog:
Needed to add code to deal with conditional presence of "outWriter" param.
Modified:
ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServices.java
Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServices.java?rev=583562&r1=583561&r2=583562&view=diff==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServices.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServices.java Wed Oct 10 11:00:06 2007
@@ -938,7 +938,7 @@
try {
ContentWorker.renderContentAsText(dispatcher, delegator, contentId, outWriter, templateContext, locale, mimeTypeId, true);
- out.write(outWriter.toString());
+ if (out != null) out.write(outWriter.toString());
results.put("textData", outWriter.toString());
} catch (GeneralException e) {
Debug.logError(e, "Error rendering sub-content text", module);