SOLR-12833: prevent NPE in DistributedUpdateProcessorTest AfterClass when mockito assumption fails in BeforeClass

(cherry picked from commit cde00b9a84)
This commit is contained in:
Chris Hostetter 2019-05-08 11:35:14 -07:00
parent 2ec14f0323
commit eed96570aa
1 changed files with 3 additions and 1 deletions

View File

@ -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");
}