[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:
parent
552b7793d3
commit
3c3c81720a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue