tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r895661 - /tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java
Date Mon, 04 Jan 2010 15:27:23 GMT
Author: slaws
Date: Mon Jan  4 15:27:23 2010
New Revision: 895661

URL: http://svn.apache.org/viewvc?rev=895661&view=rev
Log:
Test against null target endpoint

Modified:
    tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java

Modified: tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java?rev=895661&r1=895660&r2=895661&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/core/src/main/java/org/apache/tuscany/sca/core/assembly/impl/EndpointRegistryImpl.java
Mon Jan  4 15:27:23 2010
@@ -106,7 +106,8 @@
 
         logger.fine("Find endpoint for reference - " + endpointReference.toString());
 
-        if (endpointReference.getReference() != null) {
+        if (endpointReference.getReference() != null && 
+            endpointReference.getTargetEndpoint() != null) {
             Endpoint targetEndpoint = endpointReference.getTargetEndpoint();
             foundEndpoints.addAll(findEndpoint(targetEndpoint.getURI()));
         }



Mime
View raw message