fix: Avoid a NullPointerException when terminate is called again during shutdown

This commit is contained in:
Adam Miller
2025-06-11 17:44:52 -07:00
parent 61af1d83c4
commit 0494d63ea2
@@ -423,7 +423,8 @@ implements Serializable,
public synchronized void requestCrawlStop() {
if(state == State.STOPPING) {
// second stop request; nudge the threads with interrupts
getToePool().cleanup();
if (getToePool() != null)
getToePool().cleanup();
}
requestCrawlStop(CrawlStatus.ABORTED);
}