summaryrefslogtreecommitdiffstatsabout
diff options
context:
space:
mode:
authorGul Onural2012-08-24 12:44:57 (EDT)
committer tware2012-08-27 14:36:05 (EDT)
commit85f26e5d6899bdeaa9673334e438adbbb6092b15 (patch)
treeb8f22d591ec458a75327cdfa2c7744acef56633b
parentee8cf353a6aa62b9314dfb2e9459b04750574047 (diff)
downloadeclipselink.runtime-85f26e5d6899bdeaa9673334e438adbbb6092b15.zip
eclipselink.runtime-85f26e5d6899bdeaa9673334e438adbbb6092b15.tar.gz
eclipselink.runtime-85f26e5d6899bdeaa9673334e438adbbb6092b15.tar.bz2
Fix for Bug 387636
-rw-r--r--jpa/org.eclipse.persistence.jpars/src/org/eclipse/persistence/jpa/rs/PersistenceContext.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/jpa/org.eclipse.persistence.jpars/src/org/eclipse/persistence/jpa/rs/PersistenceContext.java b/jpa/org.eclipse.persistence.jpars/src/org/eclipse/persistence/jpa/rs/PersistenceContext.java
index f5eb23d..b13cd66 100644
--- a/jpa/org.eclipse.persistence.jpars/src/org/eclipse/persistence/jpa/rs/PersistenceContext.java
+++ b/jpa/org.eclipse.persistence.jpars/src/org/eclipse/persistence/jpa/rs/PersistenceContext.java
@@ -394,6 +394,7 @@ public class PersistenceContext {
} catch (Exception e){
JPARSLogger.fine("exception_while_updating_attribute", new Object[]{entityName, getName(), e.toString()});
transaction.rollbackTransaction(em);
+ return null;
}
} else {
return null;
@@ -429,6 +430,7 @@ public class PersistenceContext {
transaction.commitTransaction(em);
} catch (Exception e){
transaction.rollbackTransaction(em);
+ return null;
}
} else {
return null;