[ARTEMIS-2050] It is possible to get AMQ224000: Failure in initialisation: java.lang.NullPointerException during shutdown of backup server with shared store

This commit is contained in:
JiriOndrusek 2018-08-24 09:14:02 +02:00 committed by Justin Bertram
parent 552b7793d3
commit 3c3c81720a
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public final class SharedStoreBackupActivation extends Activation {
activeMQServer.getNodeManager().releaseBackup();
}
if (sharedStoreSlavePolicy.isAllowAutoFailBack()) {
if (sharedStoreSlavePolicy.isAllowAutoFailBack() && ActiveMQServerImpl.SERVER_STATE.STOPPING != activeMQServer.getState() && ActiveMQServerImpl.SERVER_STATE.STOPPED != activeMQServer.getState()) {
startFailbackChecker();
}
} catch (ClosedChannelException | InterruptedException e) {