mirror of https://github.com/apache/lucene.git
SOLR-4218: SolrTestCaseJ4 throws NPE when closing the core (on the afterClass method)
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423932 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
aa695debba
commit
232aaa42ed
|
@ -162,12 +162,16 @@ public class HttpShardHandlerFactory extends ShardHandlerFactory implements Plug
|
|||
}
|
||||
|
||||
try {
|
||||
if(defaultClient != null) {
|
||||
defaultClient.getConnectionManager().shutdown();
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
SolrException.log(log, e);
|
||||
}
|
||||
try {
|
||||
if(loadbalancer != null) {
|
||||
loadbalancer.shutdown();
|
||||
}
|
||||
} catch (Throwable e) {
|
||||
SolrException.log(log, e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue