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

This commit is contained in:
Chris Hostetter 2019-05-08 11:35:14 -07:00
parent 81cfbcd009
commit cde00b9a84
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() {
if (null != executor) { // may not have inited due to lack of mockito
executor.shutdown();
}
System.clearProperty("enable.update.log");
}