diff --git a/idea/idea-jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt b/idea/idea-jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt index 912246c6457..05e89af0508 100644 --- a/idea/idea-jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt +++ b/idea/idea-jps-common/src/org/jetbrains/kotlin/config/KotlinFacetSettings.kt @@ -200,7 +200,7 @@ class KotlinFacetSettings { return CoroutineSupport.byCompilerArgumentsOrNull(compilerArguments) } set(value) { - compilerArguments!!.coroutinesState = when (value) { + compilerArguments?.coroutinesState = when (value) { null -> CommonCompilerArguments.DEFAULT LanguageFeature.State.ENABLED -> CommonCompilerArguments.ENABLE LanguageFeature.State.ENABLED_WITH_WARNING -> CommonCompilerArguments.WARN