mirror of https://github.com/apache/lucene.git
SOLR-9513: Fix test failure on Windows and Java9 by avoiding NPE in tearDownClass()
This commit is contained in:
parent
04108d9935
commit
b5cfb17bd0
|
@ -59,7 +59,9 @@ public class TestSolrCloudWithHadoopAuthPlugin extends SolrCloudTestCase {
|
||||||
System.clearProperty("solr.kerberos.keytab");
|
System.clearProperty("solr.kerberos.keytab");
|
||||||
System.clearProperty("solr.kerberos.name.rules");
|
System.clearProperty("solr.kerberos.name.rules");
|
||||||
System.clearProperty("solr.jaas.debug");
|
System.clearProperty("solr.jaas.debug");
|
||||||
|
if (kerberosTestServices != null) {
|
||||||
kerberosTestServices.stop();
|
kerberosTestServices.stop();
|
||||||
|
}
|
||||||
kerberosTestServices = null;
|
kerberosTestServices = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue