Author: remy.maucherat(a)jboss.com
Date: 2014-04-28 05:50:09 -0400 (Mon, 28 Apr 2014)
New Revision: 2407
Modified:
branches/7.4.x/src/main/java/org/apache/tomcat/util/net/NioEndpoint.java
Log:
Add null check (for a support case).
Modified: branches/7.4.x/src/main/java/org/apache/tomcat/util/net/NioEndpoint.java
===================================================================
--- branches/7.4.x/src/main/java/org/apache/tomcat/util/net/NioEndpoint.java 2014-04-28
09:00:11 UTC (rev 2406)
+++ branches/7.4.x/src/main/java/org/apache/tomcat/util/net/NioEndpoint.java 2014-04-28
09:50:09 UTC (rev 2407)
@@ -456,7 +456,7 @@
* successfully else <tt>false</tt>
*/
public boolean processChannel(NioChannel channel, SocketStatus status) {
- if (channel.isClosed()) {
+ if (channel == null || channel.isClosed()) {
return false;
}
try {
Show replies by date