]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Please, make the assumptions in the graph code also that your code otherwise makes.
authorlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 10 Feb 2011 15:12:14 +0000 (15:12 +0000)
committerlehtonen <lehtonen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 10 Feb 2011 15:12:14 +0000 (15:12 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@19756 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/DefaultRealizationVirtualGraph.java

index 1f800141784fb5098311e29ec954dcebb5fb1322..76d3ac6250115ca874b919413b4fc69a71f7cb3c 100644 (file)
@@ -30,7 +30,7 @@ public class DefaultRealizationVirtualGraph extends RealizationVirtualGraph {
        @Override\r
        public void initialize(final VirtualGraphContext context, WriteGraph graph) throws DatabaseException {\r
                \r
-               Resource configuration = graph.getPossibleObject(model, SimulationResource.getInstance(graph).HasConfiguration);\r
+               Resource configuration = graph.getSingleObject(model, SimulationResource.getInstance(graph).HasConfiguration);\r
 \r
                Resource defaultsResource = graph.newResource();\r
                int modelNode = context.getIndex(model);\r