replication future safety - only decrement search holder if not null

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@829682 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-10-26 00:19:13 +00:00
parent 5b84fb40cf
commit 56a021bca9
1 changed files with 1 additions and 1 deletions

View File

@ -851,7 +851,7 @@ public class ReplicationHandler extends RequestHandlerBase implements SolrCoreAw
} catch (IOException e) {
LOG.warn("Unable to get IndexCommit on startup", e);
} finally {
s.decref();
if (s!=null) s.decref();
}
}
String reserve = (String) master.get(RESERVE);