Fix NPE caused by KotlinCompileMojoBase if no "Xcoroutines" value is passed

NPE was happening in CLICompiler.chooseCoroutinesApplicabilityLevel
This commit is contained in:
Alexander Udalov
2017-04-17 18:40:35 +03:00
parent 9783a31779
commit 7a25af0f2f
@@ -452,9 +452,12 @@ public abstract class KotlinCompileMojoBase<A extends CommonCompilerArguments> e
arguments.suppressWarnings = nowarn;
arguments.languageVersion = languageVersion;
arguments.apiVersion = apiVersion;
arguments.coroutinesState = experimentalCoroutines;
arguments.multiPlatform = multiPlatform;
if (experimentalCoroutines != null) {
arguments.coroutinesState = experimentalCoroutines;
}
configureSpecificCompilerArguments(arguments);
try {