[logback-dev] svn commit: r1254 - logback/trunk/logback-access/src/main/java/ch/qos/logback/access/servlet

noreply.ceki at qos.ch noreply.ceki at qos.ch
Thu Jan 18 17:09:33 CET 2007


Author: ceki
Date: Thu Jan 18 17:09:33 2007
New Revision: 1254

Modified:
   logback/trunk/logback-access/src/main/java/ch/qos/logback/access/servlet/TeeHttpServletResponse.java

Log:
writer can be null

Modified: logback/trunk/logback-access/src/main/java/ch/qos/logback/access/servlet/TeeHttpServletResponse.java
==============================================================================
--- logback/trunk/logback-access/src/main/java/ch/qos/logback/access/servlet/TeeHttpServletResponse.java	(original)
+++ logback/trunk/logback-access/src/main/java/ch/qos/logback/access/servlet/TeeHttpServletResponse.java	Thu Jan 18 17:09:33 2007
@@ -49,7 +49,11 @@
   
   
   void  finish() throws IOException {
-    this.writer.close();
-    teeServletOutputStream.close();
+    if(this.writer != null) {
+      this.writer.close();
+    }
+    if(this.teeServletOutputStream != null) {
+      this.teeServletOutputStream.close();
+    }
   }
 }



More information about the logback-dev mailing list