svn commit: r583562 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServices.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r583562 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/content/ContentServices.java

byersa-3
Author: byersa
Date: Wed Oct 10 11:00:06 2007
New Revision: 583562

URL: http://svn.apache.org/viewvc?rev=583562&view=rev
Log:
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);