From 312e26aecacadd6d960ea67c107cbbe4a8b73a60 Mon Sep 17 00:00:00 2001 From: "PSp..om" Date: Sat, 19 Mar 2011 03:04:30 +0000 Subject: [PATCH] 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 --- .../networking/com/jme3/network/kernel/tcp/SelectorKernel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java b/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java index bbd94ce2d..fc955577f 100644 --- a/engine/src/networking/com/jme3/network/kernel/tcp/SelectorKernel.java +++ b/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