[security-dev 00225]: Re: NullPointerException at sun.security.ssl.OutputRecord.writeBuffer
Andrew Fan
Andrew.Fan at Sun.COM
Wed Jul 9 06:20:56 UTC 2008
Hi Kanatoko,
Would you please help on a short description why the updates is
necessary? And what's the use case that the OutputStream 's' would be null?
Thanks & Regards,
Andrew
Kanatoko wrote:
> Here is a patch.
> This issue is really important to me. Please merge this.
>
> *** src/share/classes/sun/security/ssl/OutputRecord_orig.java 2008-07-09 01:54:02.000000000 +0900
> --- src/share/classes/sun/security/ssl/OutputRecord.java 2008-07-09 01:53:50.000000000 +0900
> ***************
> *** 311,316 ****
> --- 311,317 ----
> */
> void writeBuffer(OutputStream s, byte [] buf, int off, int len)
> throws IOException {
> + if(s == null) return;
> s.write(buf, off, len);
> s.flush();
>
>
>
>
More information about the security-dev
mailing list