lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sh...@apache.org
Subject svn commit: r1669214 - /lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java
Date Wed, 25 Mar 2015 19:57:06 GMT
Author: shaie
Date: Wed Mar 25 19:57:05 2015
New Revision: 1669214

URL: http://svn.apache.org/r1669214
Log:
check coll==null in CollectionRef.toString()

Modified:
    lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java

Modified: lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java?rev=1669214&r1=1669213&r2=1669214&view=diff
==============================================================================
--- lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java (original)
+++ lucene/dev/trunk/solr/solrj/src/java/org/apache/solr/common/cloud/ClusterState.java Wed
Mar 25 19:57:05 2015
@@ -228,7 +228,7 @@ public class ClusterState implements JSO
   public String toString() {
     StringBuilder sb = new StringBuilder();
     sb.append("live nodes:" + liveNodes);
-    sb.append(" collections:" + collectionStates);
+    sb.append("collections:" + collectionStates);
     return sb.toString();
   }
 
@@ -394,7 +394,11 @@ public class ClusterState implements JSO
     
     @Override
     public String toString() {
-      return coll.toString();
+      if (coll != null) {
+        return coll.toString();
+      } else {
+        return "null DocCollection ref";
+      }
     }
 
   }



Mime
View raw message