You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by no...@apache.org on 2003/10/20 02:24:32 UTC
cvs commit: james-server/src/java/org/apache/james/mailrepository AvalonMailRepository.java
noel 2003/10/19 17:24:32
Modified: src/java/org/apache/james/mailrepository Tag: branch_2_1_fcs
AvalonMailRepository.java
Log:
Fix bug #23877. An exception in sr.put() would result in an NPE.
Revision Changes Path
No revision
No revision
1.20.4.11 +1 -1 james-server/src/java/org/apache/james/mailrepository/AvalonMailRepository.java
Index: AvalonMailRepository.java
===================================================================
RCS file: /home/cvs/james-server/src/java/org/apache/james/mailrepository/AvalonMailRepository.java,v
retrieving revision 1.20.4.10
retrieving revision 1.20.4.11
diff -u -r1.20.4.10 -r1.20.4.11
--- AvalonMailRepository.java 24 Sep 2003 16:41:43 -0000 1.20.4.10
+++ AvalonMailRepository.java 20 Oct 2003 00:24:32 -0000 1.20.4.11
@@ -325,7 +325,7 @@
out = sr.put(key);
mc.writeMessageTo(out);
} finally {
- out.close();
+ if (out != null) out.close();
}
}
//Always save the header information
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org