mirror of
https://github.com/apache/lucene.git
synced 2025-02-19 08:27:42 +00:00
SOLR-12833: prevent NPE in DistributedUpdateProcessorTest AfterClass when mockito assumption fails in BeforeClass
(cherry picked from commit cde00b9a84f3d57252d34daaa77f2b56cf9802cb)
This commit is contained in:
parent
2ec14f0323
commit
eed96570aa
@ -65,7 +65,9 @@ public class DistributedUpdateProcessorTest extends SolrTestCaseJ4 {
|
||||
|
||||
@AfterClass
|
||||
public static void AfterClass() {
|
||||
executor.shutdown();
|
||||
if (null != executor) { // may not have inited due to lack of mockito
|
||||
executor.shutdown();
|
||||
}
|
||||
System.clearProperty("enable.update.log");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user