summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-05-20 07:01:01 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-05-20 07:01:01 +0000
commitfc66b50df4e07dee2dc7d363fb2b531052c97b77 (patch)
treeabdea2315eecac47b24501a02f67c17d0b02cebe /sca-java-2.x/trunk
parent034266efc4ee6eef9b133871690f0ca080ca7295 (diff)
Fix bug in getting runningCompositeOwners
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1125258 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java b/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java
index d30797dc31..9ae4e302a9 100644
--- a/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java
+++ b/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java
@@ -674,10 +674,9 @@ public class HazelcastDomainRegistry extends BaseDomainRegistry implements Domai
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;
}
}
}