]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed yet another fallout bug caused by commit b9b77f42 20/1420/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 5 Feb 2018 14:19:35 +0000 (16:19 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 5 Feb 2018 14:19:35 +0000 (16:19 +0200)
refs #7742

Change-Id: I2a267c11e5e9a151352d08beab38b604368fbdc1

bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ConsistsOfProcess.java
bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/TransferableGraphConfiguration2.java

index 4124add429dd76d4ae2756a6b3e0404e0d214f01..691f8864c94c7e89630ff3e5de840fa92a41aaac 100644 (file)
@@ -35,7 +35,7 @@ class ConsistsOfProcess {
 
        public static Pair<List<ConsistsOfProcessEntry>,Set<Resource>> walk(ReadGraph graph, ResourceMap<ExtentStatus> status, Collection<SeedSpec> specs, boolean ignoreVirtual) throws DatabaseException {
                
-               Collection<ConsistsOfProcessEntry> entries = new ArrayList<>();
+               Collection<ConsistsOfProcessEntry> entries = new ArrayList<>(specs.size());
                for(SeedSpec r : specs) {
                        if(SeedSpecType.INTERNAL.equals(r.specType))
                            entries.add(new ConsistsOfProcessEntry(null, r.resource, true));
index ec9c8b80c9e8fda57dd623660b6819f7b05e95aa..27ca18f6ae98bd801be36ffc5f742dd2f6de929a 100644 (file)
@@ -52,7 +52,7 @@ public class TransferableGraphConfiguration2 {
                }
 
                public static SeedSpec internal(Resource resource) {
-                       return new SeedSpec(resource, null, SeedSpecType.ROOT);
+                       return new SeedSpec(resource, "", SeedSpecType.ROOT);
                }
 
                @Override