Author: taylor
Date: Tue Apr 15 14:34:26 2008
New Revision: 648420

URL: http://svn.apache.org/viewvc?rev=648420&view=rev
Log:
https://issues.apache.org/jira/browse/JS2-864
continued. extra check for null

Modified:
    
portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletContentImpl.java

Modified: 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletContentImpl.java
URL: 
http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletContentImpl.java?rev=648420&r1=648419&r2=648420&view=diff
==============================================================================
--- 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletContentImpl.java
 (original)
+++ 
portals/jetspeed-2/portal/branches/JETSPEED-2.1.2-POSTRELEASE/components/portal/src/java/org/apache/jetspeed/aggregator/impl/PortletContentImpl.java
 Tue Apr 15 14:34:26 2008
@@ -66,8 +66,11 @@
 
     public void release()
     {
-        writer.close();
-        cw.reset();
+        if (writer != null)
+        {
+            writer.close();
+            cw.reset();
+        }
         cw = null;
         writer = null;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to