mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
Merge pull request #719 from jbonofre/AMQ-8395
[AMQ-8395] Avoid possible NPE when sending advisory message
This commit is contained in:
commit
9431585553
@ -540,7 +540,7 @@ public class Topic extends BaseDestination implements Task {
|
||||
|
||||
message.incrementReferenceCount();
|
||||
|
||||
if (context.isInTransaction()) {
|
||||
if (context.isInTransaction() && (context.getTransaction() != null)) {
|
||||
context.getTransaction().addSynchronization(new Synchronization() {
|
||||
@Override
|
||||
public void afterCommit() throws Exception {
|
||||
|
Loading…
x
Reference in New Issue
Block a user