Kotlin Facet: Fix IAE on null module kind in multi-editor
#KT-17145 Fixed
This commit is contained in:
+2
-1
@@ -245,7 +245,8 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable, Co
|
|||||||
}
|
}
|
||||||
|
|
||||||
@NotNull
|
@NotNull
|
||||||
private static String getModuleKindDescription(@NotNull String moduleKind) {
|
private static String getModuleKindDescription(@Nullable String moduleKind) {
|
||||||
|
if (moduleKind == null) return "";
|
||||||
String result = moduleKindDescriptions.get(moduleKind);
|
String result = moduleKindDescriptions.get(moduleKind);
|
||||||
assert result != null : "Module kind " + moduleKind + " was not added to combobox, therefore it should not be here";
|
assert result != null : "Module kind " + moduleKind + " was not added to combobox, therefore it should not be here";
|
||||||
return result;
|
return result;
|
||||||
|
|||||||
Reference in New Issue
Block a user