From 16fffaca57187ce2e2de3388cb7848a7337f3a8a Mon Sep 17 00:00:00 2001 From: lehtonen Date: Thu, 10 Feb 2011 15:12:14 +0000 Subject: [PATCH] Please, make the assumptions in the graph code also that your code otherwise makes. git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19756 ac1ea38d-2e2b-0410-8846-a27921b304fc --- .../sysdyn/ui/project/DefaultRealizationVirtualGraph.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/DefaultRealizationVirtualGraph.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/DefaultRealizationVirtualGraph.java index 1f800141..76d3ac62 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/DefaultRealizationVirtualGraph.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/DefaultRealizationVirtualGraph.java @@ -30,7 +30,7 @@ public class DefaultRealizationVirtualGraph extends RealizationVirtualGraph { @Override public void initialize(final VirtualGraphContext context, WriteGraph graph) throws DatabaseException { - Resource configuration = graph.getPossibleObject(model, SimulationResource.getInstance(graph).HasConfiguration); + Resource configuration = graph.getSingleObject(model, SimulationResource.getInstance(graph).HasConfiguration); Resource defaultsResource = graph.newResource(); int modelNode = context.getIndex(model); -- 2.47.1