tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r619207 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionPolicy.java
Date Wed, 06 Feb 2008 23:01:13 GMT
Author: dblevins
Date: Wed Feb  6 15:01:11 2008
New Revision: 619207

URL: http://svn.apache.org/viewvc?rev=619207&view=rev
Log:
Fix via Michael Heyman for when the operation is null (might have a different issue there)

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionPolicy.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionPolicy.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionPolicy.java?rev=619207&r1=619206&r2=619207&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionPolicy.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/transaction/TransactionPolicy.java
Wed Feb  6 15:01:11 2008
@@ -218,7 +218,7 @@
 
     protected void logSystemException(Throwable sysException, TransactionContext context)
{
         Operation operation = context.callContext.getCurrentOperation();
-        if (operation.isCallback()){
+        if (operation != null && operation.isCallback()){
             logger.error("startup.beanInstanceSystemExceptionThrown", sysException, sysException.getMessage());
         } else {
             logger.debug("startup.beanInstanceSystemExceptionThrown", sysException, sysException.getMessage());



Mime
View raw message