lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From no...@apache.org
Subject svn commit: r781656 - /lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java
Date Thu, 04 Jun 2009 06:23:42 GMT
Author: noble
Date: Thu Jun  4 06:23:42 2009
New Revision: 781656

URL: http://svn.apache.org/viewvc?rev=781656&view=rev
Log:
SOLR-1200

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java?rev=781656&r1=781655&r2=781656&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/handler/admin/CoreAdminHandler.java Thu Jun
 4 06:23:42 2009
@@ -316,6 +316,10 @@
     SolrParams params = req.getParams();
     String cname = params.get(CoreAdminParams.CORE);
     SolrCore core = coreContainer.remove(cname);
+    if(core == null){
+       throw new SolrException(SolrException.ErrorCode.BAD_REQUEST,
+              "No such core exists '"+cname+"'");
+    }
     core.close();
     return coreContainer.isPersistent();
 



Mime
View raw message