]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.structural2/src/org/simantics/structural2/variables/StandardProceduralChildVariable.java
Ignore NoSingleResultException in DependenciesRelation
[simantics/platform.git] / bundles / org.simantics.structural2 / src / org / simantics / structural2 / variables / StandardProceduralChildVariable.java
index a5b50f6f36bc5dc7f1368ff0acc80d9ea4a46e23..f133adee02e3c783b7e7fe5b8dc12ef93a6a4d5a 100644 (file)
@@ -271,7 +271,7 @@ public class StandardProceduralChildVariable extends AbstractChildVariable {
        public Resource getType(ReadGraph graph, Resource baseType) throws DatabaseException {
                if (graph.isInheritedFrom(type, baseType))
                        return type;
-               throw new NoSingleResultException("variable " + getPossibleURI(graph) + " has no type");
+               throw new NoSingleResultException("variable " + getPossibleURI(graph) + " has no type", -1);
        }
        
        @Override