Fixed an NPE in the filter code... oops. A null filter

is the same as always true.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7032 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
PSp..om 14 years ago
parent 8fc15d2ecf
commit 312e26aeca
  1. 2
      engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java

@ -124,7 +124,7 @@ public class SelectorKernel extends AbstractKernel
// Hand it to all of the endpoints that match our routing
for( NioEndpoint p : endpoints.values() ) {
// Does it match the filter?
if( !filter.apply(p) )
if( filter != null && !filter.apply(p) )
continue;
// Give it the data

Loading…
Cancel
Save