ARTEMIS-1752 - avoid null pointer in BridgeImpl

https://issues.apache.org/jira/browse/ARTEMIS-1752
This commit is contained in:
andytaylor 2018-03-19 08:36:38 +00:00 committed by Martyn Taylor
parent d3b11bc439
commit a1c76e8d61
1 changed files with 3 additions and 1 deletions

View File

@ -775,7 +775,9 @@ public class BridgeImpl implements Bridge, SessionFailureListener, SendAcknowled
protected void fail(final boolean permanently) {
logger.debug(this + "\n\t::fail being called, permanently=" + permanently);
//we need to make sure we remove the node from the topology so any incoming quorum requests are voted correctly
serverLocator.notifyNodeDown(System.currentTimeMillis(), targetNodeID);
if (targetNodeID != null) {
serverLocator.notifyNodeDown(System.currentTimeMillis(), targetNodeID);
}
if (queue != null) {
try {
if (logger.isTraceEnabled()) {