From: villberg Date: Tue, 27 Jul 2010 20:14:43 +0000 (+0000) Subject: Teemu: does this solve the problem? X-Git-Tag: simantics-1.2.0~156 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=e9fda44d17734d2d3ce44916cb9181df4c9a8581;p=simantics%2Fsysdyn.git Teemu: does this solve the problem? git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16853 ac1ea38d-2e2b-0410-8846-a27921b304fc --- diff --git a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/HistoryRealizationVirtualGraph.java b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/HistoryRealizationVirtualGraph.java index d093da4e..aa398eea 100644 --- a/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/HistoryRealizationVirtualGraph.java +++ b/org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/project/HistoryRealizationVirtualGraph.java @@ -76,11 +76,12 @@ public class HistoryRealizationVirtualGraph extends RealizationVirtualGraph { Resource configuration = graph.getPossibleObject(model, b.HasConfiguration); for(Resource part : graph.getObjects(configuration, b.ConsistsOf)) { String partName = graph.getPossibleRelatedValue(part, b.HasName, StringBindingDefault.INSTANCE); - Resource partResource = graph.newResource(); - int partNode = context.getIndex(partResource); - graph.claim(run, b.ConsistsOf, null, partResource); -// System.out.println("RealizationVirtualGraph primes " + partName); - undiscovered.put(partNode, new ResourceData(runNode, part, valuation, partName, experimentName, null)); + if(partName != null) { + Resource partResource = graph.newResource(); + int partNode = context.getIndex(partResource); + graph.claim(run, b.ConsistsOf, null, partResource); + undiscovered.put(partNode, new ResourceData(runNode, part, valuation, partName, experimentName, null)); + } } }