You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2011/10/19 12:31:42 UTC
svn commit: r1186074 -
/tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioReceiver.java
Author: markt
Date: Wed Oct 19 10:31:41 2011
New Revision: 1186074
URL: http://svn.apache.org/viewvc?rev=1186074&view=rev
Log:
Fix possible NPE
Modified:
tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioReceiver.java
Modified: tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioReceiver.java
URL: http://svn.apache.org/viewvc/tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioReceiver.java?rev=1186074&r1=1186073&r2=1186074&view=diff
==============================================================================
--- tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioReceiver.java (original)
+++ tomcat/tc7.0.x/trunk/java/org/apache/catalina/tribes/transport/nio/NioReceiver.java Wed Oct 19 10:31:41 2011
@@ -283,7 +283,7 @@ public class NioReceiver extends Receive
// get an iterator over the set of selected keys
Iterator<SelectionKey> it = (selector!=null)?selector.selectedKeys().iterator():null;
// look at each key in the selected set
- while (selector!=null && it.hasNext()) {
+ while (it!=null && it.hasNext()) {
SelectionKey key = it.next();
// Is a new connection coming in?
if (key.isAcceptable()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org