mirror of https://github.com/apache/openjpa.git
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:
parent
208be279f9
commit
90fcd9623d
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue