Kotlin Facet: Fix IAE on null module kind in multi-editor

#KT-17145 Fixed
This commit is contained in:
Alexey Sedunov
2017-03-29 23:03:54 +03:00
parent 313f90e7eb
commit b04cbf537f
@@ -245,7 +245,8 @@ public class KotlinCompilerConfigurableTab implements SearchableConfigurable, Co
}
@NotNull
private static String getModuleKindDescription(@NotNull String moduleKind) {
private static String getModuleKindDescription(@Nullable String moduleKind) {
if (moduleKind == null) return "";
String result = moduleKindDescriptions.get(moduleKind);
assert result != null : "Module kind " + moduleKind + " was not added to combobox, therefore it should not be here";
return result;