tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1125258 - /tuscany/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java
Date Fri, 20 May 2011 07:01:01 GMT
Author: antelder
Date: Fri May 20 07:01:01 2011
New Revision: 1125258

URL: http://svn.apache.org/viewvc?rev=1125258&view=rev
Log:
Fix bug in getting runningCompositeOwners

Modified:
    tuscany/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java

Modified: tuscany/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java?rev=1125258&r1=1125257&r2=1125258&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java
(original)
+++ tuscany/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java
Fri May 20 07:01:01 2011
@@ -674,10 +674,9 @@ public class HazelcastDomainRegistry ext
         for (String m : runningCompositeOwners.keySet()) {
             Map<String, List<String>> rcs = runningCompositeOwners.get(m);
             if (rcs != null) {
-                for (String curi : rcs.keySet()) {
-                    if (rcs.get(curi).contains(compositeURI)) {
-                        return m;
-                    }
+                List<String> cs = rcs.get(contributionURI);
+                if (cs != null && cs.contains(compositeURI)) {
+                    return m;
                 }
             }
         }



Mime
View raw message