From: Tuukka Lehtonen Date: Mon, 2 Jan 2017 20:17:38 +0000 (+0200) Subject: Fixed NPE caused by previous change. X-Git-Tag: v1.27.0~43 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F244%2F1;p=simantics%2Fplatform.git Fixed NPE caused by previous change. refs #6926 Change-Id: I43da3f39957c5832f1ebef32fa18f52adf8c1737 --- diff --git a/bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/UpdateComponentUids.java b/bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/UpdateComponentUids.java index dad99c8ce..0c051ecef 100644 --- a/bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/UpdateComponentUids.java +++ b/bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/UpdateComponentUids.java @@ -35,6 +35,7 @@ public class UpdateComponentUids> { this.componentMonitor = monitor instanceof ComponentUpdateProgressMonitor ? (ComponentUpdateProgressMonitor) monitor : null; this.graph = graph; this.componentCount = componentCount; + this.oldToNewUids = new THashMap<>(componentCount); } private void update(T component, Variable variable) throws DatabaseException {