SOLR-9513: Fix test failure on Windows and Java9 by avoiding NPE in tearDownClass()

This commit is contained in:
Ishan Chattopadhyaya 2016-12-21 00:42:16 +05:30
parent 04108d9935
commit b5cfb17bd0
1 changed files with 3 additions and 1 deletions

View File

@ -59,7 +59,9 @@ public class TestSolrCloudWithHadoopAuthPlugin extends SolrCloudTestCase {
System.clearProperty("solr.kerberos.keytab");
System.clearProperty("solr.kerberos.name.rules");
System.clearProperty("solr.jaas.debug");
kerberosTestServices.stop();
if (kerberosTestServices != null) {
kerberosTestServices.stop();
}
kerberosTestServices = null;
}