tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r643762 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EndpointFactory.java
Date Wed, 02 Apr 2008 07:02:24 GMT
Author: dblevins
Date: Wed Apr  2 00:02:23 2008
New Revision: 643762

URL: http://svn.apache.org/viewvc?rev=643762&view=rev
Log:
Check for a null xaResource before attempting to wrap

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EndpointFactory.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EndpointFactory.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EndpointFactory.java?rev=643762&r1=643761&r2=643762&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EndpointFactory.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/EndpointFactory.java
Wed Apr  2 00:02:23 2008
@@ -58,7 +58,7 @@
     }
 
     public MessageEndpoint createEndpoint(XAResource xaResource) throws UnavailableException
{
-        if (txRecovery) {
+        if (txRecovery && xaResource != null) {
             xaResource = new WrapperNamedXAResource(xaResource, container.getContainerID().toString());
         }
         EndpointHandler endpointHandler = new EndpointHandler(container, deploymentInfo,
instanceFactory, xaResource);



Mime
View raw message