Parcourir la source

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

PSp..om il y a 14 ans
Parent
commit
312e26aeca

+ 1 - 1
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