From 628bd7cc1c131484dc13f162731d84812988bd70 Mon Sep 17 00:00:00 2001 From: Antti Villberg Date: Tue, 18 Apr 2017 16:07:53 +0300 Subject: [PATCH] Model export broke down due to internal resource changes refs #7145 Change-Id: I799a57b37763b9def8313989a38afa5560389077 --- .../db/layer0/util/ModelTransferableGraphSource.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ModelTransferableGraphSource.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ModelTransferableGraphSource.java index e7fa24124..2d0fbcfe1 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ModelTransferableGraphSource.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/util/ModelTransferableGraphSource.java @@ -228,7 +228,7 @@ public class ModelTransferableGraphSource implements TransferableGraphSource { @Override public int getIdentityCount() { - return configuration.roots.size() + state.externals.size() + 1; + return configuration.roots.size() + state.externals.size() + state.internalEntries.size() + 1; } @Override @@ -415,6 +415,8 @@ public class ModelTransferableGraphSource implements TransferableGraphSource { for(InternalEntry ie : state.internalEntries) { if(ie.parent != null && ie.name != null) { procedure.execute(resolveInternal(graph, support, ie, internalMap)); + } else { + throw new DatabaseException("Invalid internal entry " + ie); } } } -- 2.47.1