From: Tuukka Lehtonen Date: Mon, 5 Feb 2018 14:19:35 +0000 (+0200) Subject: Fixed yet another fallout bug caused by commit b9b77f42 X-Git-Tag: v1.43.0~136^2~606 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=e7559259c793f0dd6d55240efb8eb542e0fc17b4;p=simantics%2Fplatform.git Fixed yet another fallout bug caused by commit b9b77f42 refs #7742 Change-Id: I2a267c11e5e9a151352d08beab38b604368fbdc1 --- diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ConsistsOfProcess.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ConsistsOfProcess.java index 4124add42..691f8864c 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ConsistsOfProcess.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ConsistsOfProcess.java @@ -35,7 +35,7 @@ class ConsistsOfProcess { public static Pair,Set> walk(ReadGraph graph, ResourceMap status, Collection specs, boolean ignoreVirtual) throws DatabaseException { - Collection entries = new ArrayList<>(); + Collection entries = new ArrayList<>(specs.size()); for(SeedSpec r : specs) { if(SeedSpecType.INTERNAL.equals(r.specType)) entries.add(new ConsistsOfProcessEntry(null, r.resource, true)); diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/TransferableGraphConfiguration2.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/TransferableGraphConfiguration2.java index ec9c8b80c..27ca18f6a 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/TransferableGraphConfiguration2.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/TransferableGraphConfiguration2.java @@ -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