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());