tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r1124611 - /tuscany/sca-java-2.x/trunk/modules/domain-hazelcast/src/main/java/org/apache/tuscany/sca/registry/hazelcast/HazelcastDomainRegistry.java
Date Thu, 19 May 2011 08:50:40 GMT
Author: antelder
Date: Thu May 19 08:50:39 2011
New Revision: 1124611

URL: http://svn.apache.org/viewvc?rev=1124611&view=rev
Log:
Guard against NPE

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=1124611&r1=1124610&r2=1124611&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
Thu May 19 08:50:39 2011
@@ -669,9 +669,11 @@ public class HazelcastDomainRegistry ext
     public String getRunningMember(String contributionURI, String compositeURI) {
         for (String m : runningCompositeOwners.keySet()) {
             Map<String, List<String>> rcs = runningCompositeOwners.get(m);
-            for (String curi : rcs.keySet()) {
-                if (rcs.get(curi).contains(compositeURI)) {
-                    return m;
+            if (rcs != null) {
+                for (String curi : rcs.keySet()) {
+                    if (rcs.get(curi).contains(compositeURI)) {
+                        return m;
+                    }
                 }
             }
         }



Mime
View raw message