Author: lhein
Date: Fri Apr 11 04:24:14 2008
New Revision: 647117

URL: http://svn.apache.org/viewvc?rev=647117&view=rev
Log:
added security check if service information is present

Modified:
    
servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/resolver/ServiceRoundRobinPolicy.java

Modified: 
servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/resolver/ServiceRoundRobinPolicy.java
URL: 
http://svn.apache.org/viewvc/servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/resolver/ServiceRoundRobinPolicy.java?rev=647117&r1=647116&r2=647117&view=diff
==============================================================================
--- 
servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/resolver/ServiceRoundRobinPolicy.java
 (original)
+++ 
servicemix/smx3/trunk/core/servicemix-core/src/main/java/org/apache/servicemix/jbi/resolver/ServiceRoundRobinPolicy.java
 Fri Apr 11 04:24:14 2008
@@ -48,6 +48,10 @@
             return null;
         }
 
+        if (exchange.getService() == null) {
+            return endpoints[0];
+        }
+        
         // check for saved index for that service
         if (lastIndexMap.containsKey(exchange.getService())) {
             // ok, there is already something


Reply via email to