You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2010/12/23 13:28:04 UTC

svn commit: r1052241 - /httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java

Author: olegk
Date: Thu Dec 23 12:28:04 2010
New Revision: 1052241

URL: http://svn.apache.org/viewvc?rev=1052241&view=rev
Log:
Check for appBufferStatus being non-null

Modified:
    httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java

Modified: httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java?rev=1052241&r1=1052240&r2=1052241&view=diff
==============================================================================
--- httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java (original)
+++ httpcomponents/httpcore/trunk/httpcore-nio/src/main/java/org/apache/http/impl/nio/reactor/SSLIOSession.java Thu Dec 23 12:28:04 2010
@@ -425,13 +425,13 @@ public class SSLIOSession implements IOS
     }
 
     public synchronized boolean hasBufferedInput() {
-        return this.appBufferStatus.hasBufferedInput()
+        return (this.appBufferStatus != null && this.appBufferStatus.hasBufferedInput())
             || this.inEncrypted.position() > 0
             || this.inPlain.position() > 0;
     }
 
     public synchronized boolean hasBufferedOutput() {
-        return this.appBufferStatus.hasBufferedOutput()
+        return (this.appBufferStatus != null && this.appBufferStatus.hasBufferedOutput())
             || this.outEncrypted.position() > 0
             || this.outPlain.position() > 0;
     }