From 3672d0143a9bdf4bc620bac25c92f20ce85fab92 Mon Sep 17 00:00:00 2001 From: Alpi Rimppi Date: Wed, 21 Aug 2019 12:26:26 +0300 Subject: [PATCH] Initialize new cache in flush instead of setting it null gitlab #353 Change-Id: Ib07b8c51c4adde6066ac4bf738bf067fec2249c9 --- .../scl/compiler/module/repository/ModuleRepository.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } /** -- 2.47.1