Author: norman
Date: Fri Sep 23 11:32:55 2011
New Revision: 1174670
URL: http://svn.apache.org/viewvc?rev=1174670&view=rev
Log:
Fix MailEnvelopeImpl outputstream creation
Modified:
james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java
Modified:
james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java
URL:
http://svn.apache.org/viewvc/james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java?rev=1174670&r1=1174669&r2=1174670&view=diff
==============================================================================
---
james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java
(original)
+++
james/protocols/trunk/smtp/src/main/java/org/apache/james/protocols/smtp/MailEnvelopeImpl.java
Fri Sep 23 11:32:55 2011
@@ -90,7 +90,9 @@ public class MailEnvelopeImpl implements
* @see
org.apache.james.smtpserver.protocol.MailEnvelope#getMessageOutputStream()
*/
public OutputStream getMessageOutputStream() {
- this.outputStream = new ByteArrayOutputStream(100000);
+ if (outputStream == null) {
+ this.outputStream = new ByteArrayOutputStream(100000);
+ }
return outputStream;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]