You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by by...@apache.org on 2007/10/10 20:00:06 UTC

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

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);