X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.interop%2Fsrc%2Forg%2Fsimantics%2Finterop%2Ftest%2FGraphChanges.java;h=304c156f3ec166a85440569087aa0e5c74221fdb;hb=0f21335f14c55509875dc7bc51fd637b5b9ac920;hp=f9065070fe095f8e3c247c12bf03011f8db811cd;hpb=a43434a612fa0aafd0d4f17ebed2b770c4b1d585;p=simantics%2Finterop.git diff --git a/org.simantics.interop/src/org/simantics/interop/test/GraphChanges.java b/org.simantics.interop/src/org/simantics/interop/test/GraphChanges.java index f906507..304c156 100644 --- a/org.simantics.interop/src/org/simantics/interop/test/GraphChanges.java +++ b/org.simantics.interop/src/org/simantics/interop/test/GraphChanges.java @@ -271,6 +271,8 @@ public class GraphChanges { p2 = p1; Resource o1 = del.getObject(); Resource o2 = bijection.getComparable().getRight(o1); + if (o2 == null) + o2 = graph.getPossibleObject(s2, p2); if (s2 == null || p2 == null || o2 == null) { throw new DatabaseException("Did not find matching statement from bijection for (" + s1 +","+p1+","+o1+"), got (" + s2 +","+p2+","+o2+")");