lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hoss...@apache.org
Subject svn commit: r937529 - /lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java
Date Fri, 23 Apr 2010 21:43:41 GMT
Author: hossman
Date: Fri Apr 23 21:43:41 2010
New Revision: 937529

URL: http://svn.apache.org/viewvc?rev=937529&view=rev
Log:
simple null check: SolrCore isn't garunteed to havea CoreDescriptor, and CoreDescriptor doesn't
have to have a CoreContainer

Modified:
    lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java

Modified: lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java?rev=937529&r1=937528&r2=937529&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java (original)
+++ lucene/dev/trunk/solr/src/java/org/apache/solr/core/SolrCore.java Fri Apr 23 21:43:41
2010
@@ -1626,7 +1626,10 @@ public final class SolrCore implements S
     lst.add("coreName", name==null ? "(null)" : name);
     lst.add("startTime", new Date(startTime));
     lst.add("refCount", getOpenCount());
-    lst.add("aliases", getCoreDescriptor().getCoreContainer().getCoreNames(this));
+
+    if (null != getCoreDescriptor() && null != getCoreDescriptor().getCoreContainer())
{
+      lst.add("aliases", getCoreDescriptor().getCoreContainer().getCoreNames(this));
+    }
     return lst;
   }
 



Mime
View raw message