]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.impl/src/org/simantics/db/impl/graph/SingleObjectProcedure.java
Ignore NoSingleResultException in DependenciesRelation
[simantics/platform.git] / bundles / org.simantics.db.impl / src / org / simantics / db / impl / graph / SingleObjectProcedure.java
index 06823b09f5c95795a22e8549d368c80274bc41ca..662d2d32dfc49cd53c42dafbfa5344e988ff770e 100644 (file)
@@ -20,7 +20,7 @@ public class SingleObjectProcedure implements IntProcedure {
        public void execute(ReadGraphImpl graph, int i) {
                Resource resource = processor.querySupport.getResource(i);
                if(result != null) {
-                       exception = new NoSingleResultException("");
+                       exception = new NoSingleResultException("", 2);
                } else {
                        result = resource;
                }
@@ -28,7 +28,7 @@ public class SingleObjectProcedure implements IntProcedure {
 
        @Override
        public void finished(ReadGraphImpl graph) {
-               if(result == null) exception = new NoSingleResultException("");
+               if(result == null) exception = new NoSingleResultException("", 0);
        }
 
        @Override