]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Teemu: does this solve the problem?
authorvillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 27 Jul 2010 20:14:43 +0000 (20:14 +0000)
committervillberg <villberg@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Tue, 27 Jul 2010 20:14:43 +0000 (20:14 +0000)
git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@16853 ac1ea38d-2e2b-0410-8846-a27921b304fc

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

index d093da4e779ab1b7d49af15fda661c2aad5008d4..aa398eea5830e4f090b2399e38021a80e01c30ab 100644 (file)
@@ -76,11 +76,12 @@ public class HistoryRealizationVirtualGraph extends RealizationVirtualGraph {
                                                        Resource configuration = graph.getPossibleObject(model, b.HasConfiguration);\r
                                                        for(Resource part : graph.getObjects(configuration, b.ConsistsOf)) {\r
                                                                String partName = graph.getPossibleRelatedValue(part, b.HasName, StringBindingDefault.INSTANCE);\r
-                                                               Resource partResource = graph.newResource();\r
-                                                               int partNode = context.getIndex(partResource);\r
-                                                               graph.claim(run, b.ConsistsOf, null, partResource);\r
-//                                                             System.out.println("RealizationVirtualGraph primes " + partName);\r
-                                                               undiscovered.put(partNode, new ResourceData(runNode, part, valuation, partName, experimentName, null));\r
+                                                               if(partName != null) {\r
+                                                                       Resource partResource = graph.newResource();\r
+                                                                       int partNode = context.getIndex(partResource);\r
+                                                                       graph.claim(run, b.ConsistsOf, null, partResource);\r
+                                                                       undiscovered.put(partNode, new ResourceData(runNode, part, valuation, partName, experimentName, null));\r
+                                                               }\r
                                                        }\r
                                                        \r
                                                }\r