servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r387865 - /incubator/servicemix/trunk/servicemix-core/src/main/java/org/apache/servicemix/jbi/framework/EndpointRegistry.java
Date Wed, 22 Mar 2006 14:00:49 GMT
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()) {



Mime
View raw message