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:
Shalin Shekhar Mangar 2014-07-07 21:33:38 +00:00
parent 6c0539dd7f
commit e6ce493374
1 changed files with 3 additions and 1 deletions

View File

@ -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();