OPENJPA-2167. Only attempt to fire TransactionEvents if the TransactionEventManager is not empty.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1307219 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Kevin W. Sutter 2012-03-30 02:19:45 +00:00
parent 208be279f9
commit 90fcd9623d
1 changed files with 1 additions and 1 deletions

View File

@ -878,7 +878,7 @@ public class BrokerImpl
* Fire given transaction event, handling any exceptions appropriately.
*/
private void fireTransactionEvent(TransactionEvent trans) {
if (_transEventManager != null)
if (_transEventManager != null && _transEventManager.hasListeners())
handleCallbackExceptions(_transEventManager.fireEvent(trans),
_transCallbackMode);
}