Skip to content

Commit

Permalink
[ARTEMIS-2050] It is possible to get AMQ224000: Failure in initialisa…
Browse files Browse the repository at this point in the history
…tion: java.lang.NullPointerException during shutdown of backup server with shared store

(cherry picked from commit 3c3c817)
  • Loading branch information
JiriOndrusek authored and jbertram committed Dec 15, 2018
1 parent 31bcfbb commit 40f886d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -114,7 +114,7 @@ public void run() {

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) {
Expand Down

0 comments on commit 40f886d

Please sign in to comment.