[TEST] Check if worker if null to prevent NPE on double stopping

This commit is contained in:
Martijn van Groningen 2014-06-19 07:07:08 +02:00 committed by Boaz Leskes
parent 28489cee45
commit 8aed9ee46f
1 changed files with 3 additions and 0 deletions

View File

@ -72,6 +72,9 @@ public class SlowClusterStateProcessing extends SingleNodeDisruption {
@Override
public void stopDisrupting() {
if (worker == null) {
return;
}
disrupting = false;
try {
worker.join(2 * (intervalBetweenDelaysMax + delayDurationMax));