diff --git a/plugins/properties/properties-psi-api/src/com/intellij/lang/properties/PropertiesUtil.java b/plugins/properties/properties-psi-api/src/com/intellij/lang/properties/PropertiesUtil.java index 34f99b1094db..e6566740d9ef 100644 --- a/plugins/properties/properties-psi-api/src/com/intellij/lang/properties/PropertiesUtil.java +++ b/plugins/properties/properties-psi-api/src/com/intellij/lang/properties/PropertiesUtil.java @@ -203,13 +203,13 @@ public class PropertiesUtil { @NotNull public static @Nls String getPresentableLocale(@NotNull Locale locale) { List names = new ArrayList<>(); - if (locale.getDisplayLanguage() != null) { + if (StringUtil.isNotEmpty(locale.getDisplayLanguage())) { names.add(locale.getDisplayLanguage()); } - if (locale.getDisplayCountry() != null) { + if (StringUtil.isNotEmpty(locale.getDisplayCountry())) { names.add(locale.getDisplayCountry()); } - if (locale.getDisplayVariant() != null) { + if (StringUtil.isNotEmpty(locale.getDisplayVariant())) { names.add(locale.getDisplayVariant()); } return names.isEmpty() ? "" : " (" + StringUtil.join(names, "/") + ")";