From 2a6c4de72eb1249b6ae90a4e9102289d4bea0217 Mon Sep 17 00:00:00 2001 From: Anna Kozlova Date: Fri, 7 Aug 2020 09:42:34 +0200 Subject: [PATCH] NPE GitOrigin-RevId: d0cd21a408a92379fc18cc0a08c3e5cb5f140dec --- .../lang/properties/references/I18nizeQuickFixDialog.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/properties/src/com/intellij/lang/properties/references/I18nizeQuickFixDialog.java b/plugins/properties/src/com/intellij/lang/properties/references/I18nizeQuickFixDialog.java index 2228105460fe..ef5a3073ee05 100644 --- a/plugins/properties/src/com/intellij/lang/properties/references/I18nizeQuickFixDialog.java +++ b/plugins/properties/src/com/intellij/lang/properties/references/I18nizeQuickFixDialog.java @@ -446,8 +446,11 @@ public class I18nizeQuickFixDialog extends DialogWrapper implements I18nizeQuick return I18nUtil.defaultSuggestPropertiesFiles(myProject, myContextModules); } + @Nullable protected PropertiesFile getPropertiesFile() { - return getPropertyFileByPath(FileUtil.toSystemIndependentName(getPropertiesFilePath())); + String path = getPropertiesFilePath(); + if (path == null) return null; + return getPropertyFileByPath(FileUtil.toSystemIndependentName(path)); } private String getPropertiesFilePath() {