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:
gtully 2015-04-29 11:02:43 +01:00
parent eea3230c37
commit 977deb42c8
1 changed files with 3 additions and 1 deletions

View File

@ -69,7 +69,9 @@ public class TransactionContext {
inTx = false;
close();
IOException ioe = IOExceptionSupport.create(e);
if (persistenceAdapter.getBrokerService() != null) {
persistenceAdapter.getBrokerService().handleIOException(ioe);
}
throw ioe;
}