Skip to content

Commit

Permalink
Prevent exception in one plugin from breaking entire settings dialog
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 121dd49fea699bfd125c91e30f33efa9b54c670e
  • Loading branch information
yole authored and intellij-monorepo-bot committed Oct 10, 2022
1 parent 1bd8330 commit 29e185a
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -536,10 +536,20 @@ private static void initPluggedDescriptions(@NotNull List<? super EditorSchemeAt
@NotNull MyColorScheme scheme) {
ColorSettingsPage[] pages = ColorSettingsPages.getInstance().getRegisteredPages();
for (ColorSettingsPage page : pages) {
initDescriptions(page, descriptions, scheme);
try {
initDescriptions(page, descriptions, scheme);
}
catch (Exception e) {
LOG.error(e);
}
}
for (ColorAndFontDescriptorsProvider provider : ColorAndFontDescriptorsProvider.EP_NAME.getExtensionList()) {
initDescriptions(provider, descriptions, scheme);
try {
initDescriptions(provider, descriptions, scheme);
}
catch (Exception e) {
LOG.error(e);
}
}
}

Expand Down

0 comments on commit 29e185a

Please sign in to comment.