lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From is...@apache.org
Subject lucene-solr:master: SOLR-9513: Fix test failure on Windows and Java9 by avoiding NPE in tearDownClass()
Date Tue, 20 Dec 2016 19:13:28 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 04108d993 -> b5cfb17bd


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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/b5cfb17b
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/b5cfb17b
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/b5cfb17b

Branch: refs/heads/master
Commit: b5cfb17bd0d56da03dbe1f179db0f03ea0acf735
Parents: 04108d9
Author: Ishan Chattopadhyaya <ishan@apache.org>
Authored: Wed Dec 21 00:42:16 2016 +0530
Committer: Ishan Chattopadhyaya <ishan@apache.org>
Committed: Wed Dec 21 00:42:16 2016 +0530

----------------------------------------------------------------------
 .../solr/security/hadoop/TestSolrCloudWithHadoopAuthPlugin.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/b5cfb17b/solr/core/src/test/org/apache/solr/security/hadoop/TestSolrCloudWithHadoopAuthPlugin.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/security/hadoop/TestSolrCloudWithHadoopAuthPlugin.java
b/solr/core/src/test/org/apache/solr/security/hadoop/TestSolrCloudWithHadoopAuthPlugin.java
index 960fd9a..6ac9403 100644
--- a/solr/core/src/test/org/apache/solr/security/hadoop/TestSolrCloudWithHadoopAuthPlugin.java
+++ b/solr/core/src/test/org/apache/solr/security/hadoop/TestSolrCloudWithHadoopAuthPlugin.java
@@ -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;
   }
 


Mime
View raw message