summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaspar De Groot2011-03-02 21:08:35 (EST)
committerCaspar De Groot2011-03-02 21:08:35 (EST)
commitf8fa237db6bc5f271f4183fc45a58b5b9e19854d (patch)
tree5451eef8bb32f84f4a9bf35ccc84c1c37166f1f0
parentbd560a3439b5bfa4884665a9a695d404c29dc55f (diff)
downloadcdo-f8fa237db6bc5f271f4183fc45a58b5b9e19854d.zip
cdo-f8fa237db6bc5f271f4183fc45a58b5b9e19854d.tar.gz
cdo-f8fa237db6bc5f271f4183fc45a58b5b9e19854d.tar.bz2
[Bug 338620] CommitIntegrityCheck.hasPersistentOpposite is broken
https://bugs.eclipse.org/bugs/show_bug.cgi?id=338620
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java
index 7a852e4..eae943d 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/util/CommitIntegrityCheck.java
@@ -409,7 +409,8 @@ public class CommitIntegrityCheck
private static boolean hasPersistentOpposite(EReference ref)
{
- return ref.getEOpposite() != null && EMFUtil.isPersistent(ref);
+ EReference eOpposite = ref.getEOpposite();
+ return eOpposite != null && EMFUtil.isPersistent(eOpposite);
}
/**