Fix NPE caused by KotlinCompileMojoBase if no "Xcoroutines" value is passed
NPE was happening in CLICompiler.chooseCoroutinesApplicabilityLevel
This commit is contained in:
+4
-1
@@ -452,9 +452,12 @@ public abstract class KotlinCompileMojoBase<A extends CommonCompilerArguments> e
|
|||||||
arguments.suppressWarnings = nowarn;
|
arguments.suppressWarnings = nowarn;
|
||||||
arguments.languageVersion = languageVersion;
|
arguments.languageVersion = languageVersion;
|
||||||
arguments.apiVersion = apiVersion;
|
arguments.apiVersion = apiVersion;
|
||||||
arguments.coroutinesState = experimentalCoroutines;
|
|
||||||
arguments.multiPlatform = multiPlatform;
|
arguments.multiPlatform = multiPlatform;
|
||||||
|
|
||||||
|
if (experimentalCoroutines != null) {
|
||||||
|
arguments.coroutinesState = experimentalCoroutines;
|
||||||
|
}
|
||||||
|
|
||||||
configureSpecificCompilerArguments(arguments);
|
configureSpecificCompilerArguments(arguments);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user