EA-51245 - IAE: InspectionEP.getLocalizedString

This commit is contained in:
anna
2013-10-22 16:04:38 +02:00
parent b3318975f9
commit 5ca293d817
@@ -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());