mirror of https://github.com/apache/lucene.git
Added a null check
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1608615 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6c0539dd7f
commit
e6ce493374
|
@ -122,7 +122,9 @@ public class TestLBHttpSolrServer extends SolrTestCaseJ4 {
|
|||
@Override
|
||||
public void tearDown() throws Exception {
|
||||
for (SolrInstance aSolr : solr) {
|
||||
aSolr.tearDown();
|
||||
if (aSolr != null) {
|
||||
aSolr.tearDown();
|
||||
}
|
||||
}
|
||||
httpClient.getConnectionManager().shutdown();
|
||||
super.tearDown();
|
||||
|
|
Loading…
Reference in New Issue