]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Merge "Support dependency embedding in generic model export/import"
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Wed, 25 Oct 2017 11:12:02 +0000 (14:12 +0300)
committerGerrit Code Review <gerrit2@www.simantics.org>
Wed, 25 Oct 2017 11:12:02 +0000 (14:12 +0300)
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/genericrelation/DependenciesRelation.java

index 4162f91636d0b39dfb193d7bb93c076e9885b849..a3e19f1fc7d94c2af38e01f003e368df7965335d 100644 (file)
@@ -277,6 +277,7 @@ public class DependenciesRelation extends UnsupportedRelation implements Generic
                        Resource changeInformation = graph.getPossibleResource("http://www.simantics.org/Modeling-1.2/changeInformation/Inverse");
 
                        for (Resource value : parameter.changedValues()) {
+                               if(!value.isPersistent()) continue;
                                Statement modifiedComponent = graph.getPossibleStatement(value, l0.PropertyOf);
                                if (modifiedComponent == null
                                                || modifiedComponent.getPredicate().equals(changeInformation))