You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/03/22 15:00:49 UTC

svn commit: r387865 - /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java

Author: gnodet
Date: Wed Mar 22 06:00:47 2006
New Revision: 387865

URL: http://svn.apache.org/viewcvs?rev=387865&view=rev
Log:
Forgot add return statements to avoid NPE

Modified:
    incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java

Modified: incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java
URL: http://svn.apache.org/viewcvs/incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java?rev=387865&r1=387864&r2=387865&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java (original)
+++ incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java Wed Mar 22 06:00:47 2006
@@ -243,9 +243,11 @@
             }
             if (port.getBinding() == null) {
                 logger.info("Endpoint " + serviceEndpoint + " has a service description, but no binding found");
+                return;
             }
             if (port.getBinding().getPortType() == null) {
                 logger.info("Endpoint " + serviceEndpoint + " has a service description, but no port type found");
+                return;
             }
             QName interfaceName = port.getBinding().getPortType().getQName();
             if (logger.isDebugEnabled()) {