From: Alpi Rimppi Date: Wed, 21 Aug 2019 09:26:26 +0000 (+0300) Subject: Initialize new cache in flush instead of setting it null X-Git-Tag: v1.43.0~136^2~106^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=3672d0143a9bdf4bc620bac25c92f20ce85fab92;p=simantics%2Fplatform.git Initialize new cache in flush instead of setting it null gitlab #353 Change-Id: Ib07b8c51c4adde6066ac4bf738bf067fec2249c9 --- diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/module/repository/ModuleRepository.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/module/repository/ModuleRepository.java index 8a86c5ccc..a6650e9a4 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/module/repository/ModuleRepository.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/module/repository/ModuleRepository.java @@ -505,7 +505,7 @@ public class ModuleRepository { if (moduleCache != null) for (ModuleEntry entry : moduleCache.values()) entry.dispose(); - moduleCache = null; + moduleCache = new ConcurrentHashMap(); } /**