]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Initialize new cache in flush instead of setting it null 34/3134/2
authorAlpi Rimppi <alpi.rimppi@semantum.fi>
Wed, 21 Aug 2019 09:26:26 +0000 (12:26 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Wed, 21 Aug 2019 09:41:31 +0000 (09:41 +0000)
gitlab #353

Change-Id: Ib07b8c51c4adde6066ac4bf738bf067fec2249c9

bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/module/repository/ModuleRepository.java

index 8a86c5ccce36ecef59326e7abcd32a558d7e27ea..a6650e9a44faa5627b41b0cf260ee6ecf6baaadb 100644 (file)
@@ -505,7 +505,7 @@ public class ModuleRepository {
         if (moduleCache != null)
             for (ModuleEntry entry : moduleCache.values())
                 entry.dispose();
-        moduleCache = null;
+        moduleCache = new ConcurrentHashMap<String, ModuleEntry>();
     }
 
     /**