Fix KNPE in FacetSettings (EA-132084)

This commit is contained in:
Andrey Uskov
2018-12-24 18:53:01 +03:00
parent 1ec63c16f8
commit d4e5620b9c
@@ -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