aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r1710823 - /aries/trunk/jpa/jpa-support/src/main/java/org/apache/aries/jpa/support/impl/XAJpaTemplate.java
Date Tue, 27 Oct 2015 14:12:43 GMT
Author: cschneider
Date: Tue Oct 27 14:12:43 2015
New Revision: 1710823

URL: http://svn.apache.org/viewvc?rev=1710823&view=rev
Log:
[ARIES-1438] Fixed NPE with thanks to Matthew Pitts

Modified:
    aries/trunk/jpa/jpa-support/src/main/java/org/apache/aries/jpa/support/impl/XAJpaTemplate.java

Modified: aries/trunk/jpa/jpa-support/src/main/java/org/apache/aries/jpa/support/impl/XAJpaTemplate.java
URL: http://svn.apache.org/viewvc/aries/trunk/jpa/jpa-support/src/main/java/org/apache/aries/jpa/support/impl/XAJpaTemplate.java?rev=1710823&r1=1710822&r2=1710823&view=diff
==============================================================================
--- aries/trunk/jpa/jpa-support/src/main/java/org/apache/aries/jpa/support/impl/XAJpaTemplate.java
(original)
+++ aries/trunk/jpa/jpa-support/src/main/java/org/apache/aries/jpa/support/impl/XAJpaTemplate.java
Tue Oct 27 14:12:43 2015
@@ -74,7 +74,8 @@ public class XAJpaTemplate extends Abstr
                 LOGGER.debug("Exception during finish of transaction", e);
                 throw wrapThrowable(e, "Exception during finish of transaction");
             } finally {
-                coord.end();
+                if (coord != null)
+                    coord.end();
             }
         }
     }



Mime
View raw message