From 36cc57b2360b17202e503bdce5ea2cc5c1d7d9b8 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 9 Sep 2016 09:19:36 +0200 Subject: [PATCH] IDEA-160935 Could not initialize class com.intellij.codeInsight.template.impl.TemplateContext$ContextInterner in presence of Database Navigator plugin --- .../com/intellij/codeInsight/template/impl/TemplateContext.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java b/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java index facb75db5f96..ccb3a30ae3a7 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/template/impl/TemplateContext.java @@ -38,6 +38,7 @@ public class TemplateContext { private static class ContextInterner { private static final Map internMap = Arrays.stream(TemplateContextType.EP_NAME.getExtensions()) .map(TemplateContextType::getContextId) + .distinct() .collect(Collectors.toMap(Function.identity(), Function.identity())); }