mirror of https://github.com/apache/activemq.git
check for null in case where deleteAllMessages is called w/o broker ref, prevelant in tests resulting in bogus errors
This commit is contained in:
parent
eea3230c37
commit
977deb42c8
|
@ -69,7 +69,9 @@ public class TransactionContext {
|
||||||
inTx = false;
|
inTx = false;
|
||||||
close();
|
close();
|
||||||
IOException ioe = IOExceptionSupport.create(e);
|
IOException ioe = IOExceptionSupport.create(e);
|
||||||
|
if (persistenceAdapter.getBrokerService() != null) {
|
||||||
persistenceAdapter.getBrokerService().handleIOException(ioe);
|
persistenceAdapter.getBrokerService().handleIOException(ioe);
|
||||||
|
}
|
||||||
throw ioe;
|
throw ioe;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue