Fix NPE in HouseKeeper.stopScavenging (#4604)
* Fix NPE in HouseKeeper.stopScavenging Signed-off-by: Hirotaka Ikoma <hikoma@gmail.com>
This commit is contained in:
parent
18f8752ad0
commit
65a22e5e80
|
@ -158,8 +158,9 @@ public class HouseKeeper extends AbstractLifeCycle
|
|||
LOG.info("{} Stopped scavenging", _sessionIdManager.getWorkerName());
|
||||
}
|
||||
_task = null;
|
||||
if (_ownScheduler)
|
||||
if (_ownScheduler && _scheduler != null)
|
||||
{
|
||||
_ownScheduler = false;
|
||||
_scheduler.stop();
|
||||
_scheduler = null;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue