From 5ca293d81750ae4d1258ed0bb14370643ab14fb6 Mon Sep 17 00:00:00 2001 From: anna Date: Tue, 22 Oct 2013 13:53:00 +0200 Subject: [PATCH] EA-51245 - IAE: InspectionEP.getLocalizedString --- .../src/com/intellij/codeInspection/InspectionEP.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/platform/analysis-api/src/com/intellij/codeInspection/InspectionEP.java b/platform/analysis-api/src/com/intellij/codeInspection/InspectionEP.java index 20972dbc886b..9b794fe44f79 100644 --- a/platform/analysis-api/src/com/intellij/codeInspection/InspectionEP.java +++ b/platform/analysis-api/src/com/intellij/codeInspection/InspectionEP.java @@ -130,9 +130,12 @@ public class InspectionEP extends LanguageExtensionPoint implements InspectionPr public boolean hasStaticDescription; @Nullable - private String getLocalizedString(String bundleName, @NotNull String key) { + private String getLocalizedString(String bundleName, String key) { final String baseName = bundleName != null ? bundleName : bundle == null ? ((IdeaPluginDescriptor)myPluginDescriptor).getResourceBundleBaseName() : bundle; - if (baseName == null) { + if (baseName == null || key == null) { + if (bundleName != null) { + LOG.warn(implementationClass); + } return null; } final ResourceBundle resourceBundle = AbstractBundle.getResourceBundle(baseName, myPluginDescriptor.getPluginClassLoader());