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
This commit is contained in:
parent
8fc15d2ecf
commit
312e26aeca
@ -124,7 +124,7 @@ public class SelectorKernel extends AbstractKernel
|
|||||||
// Hand it to all of the endpoints that match our routing
|
// Hand it to all of the endpoints that match our routing
|
||||||
for( NioEndpoint p : endpoints.values() ) {
|
for( NioEndpoint p : endpoints.values() ) {
|
||||||
// Does it match the filter?
|
// Does it match the filter?
|
||||||
if( !filter.apply(p) )
|
if( filter != null && !filter.apply(p) )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Give it the data
|
// Give it the data
|
||||||
|
Loading…
x
Reference in New Issue
Block a user