]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/variable/StandardGraphPropertyVariable.java
Wrong context variable to domainChildren query in StandardGraphProper..
[simantics/platform.git] / bundles / org.simantics.db.layer0 / src / org / simantics / db / layer0 / variable / StandardGraphPropertyVariable.java
index 13977a0e5a4397be7e2a063c75fe9b77aba9aa7c..9d7fded696ce2e7c06f572e46c164406907a1e6f 100644 (file)
@@ -401,7 +401,9 @@ public class StandardGraphPropertyVariable extends AbstractPropertyVariable {
 
        protected VariableMap getPossibleChildVariableMap(ReadGraph graph) throws DatabaseException {
                if(represents == null) return All.standardPropertyDomainChildren;
-               return graph.getPossibleRelatedValue2(represents, Layer0.getInstance(graph).domainChildren, this);
+           Resource domainChildren = Layer0.getInstance(graph).domainChildren;
+               return graph.getPossibleRelatedValue2(represents, domainChildren, 
+                               new StandardGraphPropertyVariable(graph, this, domainChildren));
        }
 
        protected VariableMap getPossiblePropertyVariableMap(ReadGraph graph) throws DatabaseException {