get core first thing before try

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1245242 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-02-16 23:04:40 +00:00
parent efa20a5149
commit c5f84d4dcf
1 changed files with 1 additions and 1 deletions

View File

@ -109,8 +109,8 @@ final class ShardLeaderElectionContext extends ShardLeaderElectionContextBase {
void runLeaderProcess(String leaderSeqPath, boolean weAreReplacement)
throws KeeperException, InterruptedException, IOException {
if (cc != null) {
SolrCore core = null;
String coreName = leaderProps.get(ZkStateReader.CORE_NAME_PROP);
SolrCore core = null;
try {
core = cc.getCore(coreName);
if (core == null) {