Sfoglia il codice sorgente

Applied the null filter fix to the UDP kernel that
has already been applied to the TCP kernel.


git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7081 75d07b2b-3a1a-0410-a2c5-0572b91ccdca

PSp..om 14 anni fa
parent
commit
35e19c1667

+ 1 - 1
engine/src/networking/com/jme3/network/kernel/udp/UdpKernel.java

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