SOLR-3137: check for null orig solr.xml name

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1290829 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-02-18 17:50:05 +00:00
parent 634e115a25
commit 6d5e0efac4
1 changed files with 3 additions and 1 deletions

View File

@ -807,7 +807,9 @@ public class CoreContainer
SolrCore newCore = core.reload(solrLoader); SolrCore newCore = core.reload(solrLoader);
// keep core to orig name link // keep core to orig name link
String origName = coreToOrigName.remove(core); String origName = coreToOrigName.remove(core);
coreToOrigName.put(newCore, origName); if (origName != null) {
coreToOrigName.put(newCore, origName);
}
register(name, newCore, false); register(name, newCore, false);
} }