ARTEMIS-4714 mitigate NPE in FederatedQueueConsumerImpl MessageListener
This commit is contained in:
parent
da9695a5f6
commit
0fad7ece87
|
@ -325,7 +325,10 @@ public class FederatedQueueConsumerImpl implements FederatedQueueConsumer, Sessi
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
ActiveMQServerLogger.LOGGER.federationDispatchError(clientMessage.toString(), e);
|
ActiveMQServerLogger.LOGGER.federationDispatchError(clientMessage.toString(), e);
|
||||||
try {
|
try {
|
||||||
clientSession.rollback();
|
ClientSession localSession = clientSession;
|
||||||
|
if (localSession != null) {
|
||||||
|
localSession.rollback();
|
||||||
|
}
|
||||||
} catch (ActiveMQException e1) {
|
} catch (ActiveMQException e1) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue