From e7559259c793f0dd6d55240efb8eb542e0fc17b4 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Mon, 5 Feb 2018 16:19:35 +0200 Subject: [PATCH] Fixed yet another fallout bug caused by commit b9b77f42 refs #7742 Change-Id: I2a267c11e5e9a151352d08beab38b604368fbdc1 --- .../src/org/simantics/db/layer0/util/ConsistsOfProcess.java | 2 +- .../db/layer0/util/TransferableGraphConfiguration2.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2