Maven: do not set JVM target to null

After a236400, it's expected that the value of jvmTarget should not be
null. Otherwise ArgumentUtils.convertArgumentsToStringList fails with
NPE
This commit is contained in:
Alexander Udalov
2017-06-06 16:42:00 +03:00
parent a802e7fb71
commit fb520e3040
@@ -162,7 +162,9 @@ public class K2JVMCompileMojo extends KotlinCompileMojoBase<K2JVMCompilerArgumen
getLog().info("Optimization is turned off");
}
arguments.jvmTarget = jvmTarget;
if (jvmTarget != null) {
arguments.jvmTarget = jvmTarget;
}
if (jdkHome != null) {
getLog().info("Overriding JDK home path with: " + jdkHome);