diff --git a/platform/lang-impl/src/com/intellij/codeInsight/template/postfix/settings/PostfixTemplatesConfigurable.java b/platform/lang-impl/src/com/intellij/codeInsight/template/postfix/settings/PostfixTemplatesConfigurable.java index 73868d233326..a0dcbb429518 100644 --- a/platform/lang-impl/src/com/intellij/codeInsight/template/postfix/settings/PostfixTemplatesConfigurable.java +++ b/platform/lang-impl/src/com/intellij/codeInsight/template/postfix/settings/PostfixTemplatesConfigurable.java @@ -91,6 +91,10 @@ public class PostfixTemplatesConfigurable implements SearchableConfigurable, Edi for (LanguageExtensionPoint extension : extensions) { List postfixTemplates = ContainerUtil.newArrayList(((PostfixTemplateProvider)extension.getInstance()).getTemplates()); + if (postfixTemplates.isEmpty()) { + continue; + } + ContainerUtil.sort(postfixTemplates, TEMPLATE_COMPARATOR); templateMultiMap.putValues(extension.getKey(), postfixTemplates);