mirror of https://github.com/apache/lucene.git
SOLR-844: avoid NPE
git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@773175 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
79414d2b72
commit
dbf0a31380
|
@ -311,7 +311,8 @@ public class LBHttpSolrServer extends SolrServer {
|
||||||
|
|
||||||
protected void finalize() throws Throwable {
|
protected void finalize() throws Throwable {
|
||||||
try {
|
try {
|
||||||
this.aliveCheckExecutor.shutdownNow();
|
if(this.aliveCheckExecutor!=null)
|
||||||
|
this.aliveCheckExecutor.shutdownNow();
|
||||||
} finally {
|
} finally {
|
||||||
super.finalize();
|
super.finalize();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue