]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Fixed NPE caused by previous change. 44/244/1
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 2 Jan 2017 20:17:38 +0000 (22:17 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 2 Jan 2017 20:17:38 +0000 (22:17 +0200)
refs #6926

Change-Id: I43da3f39957c5832f1ebef32fa18f52adf8c1737

bundles/org.simantics.structural.synchronization.client/src/org/simantics/structural/synchronization/base/UpdateComponentUids.java

index dad99c8cee76487334b8119c58cbdf8c9069b716..0c051ecef9c2445963a957adae56d5c25097239c 100644 (file)
@@ -35,6 +35,7 @@ public class UpdateComponentUids<T extends ComponentBase<T>> {
         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 {