fixed possible NPE
This commit is contained in:
+2
-2
@@ -84,7 +84,7 @@ public class K2JSCompilerMojo extends KotlinCompileMojo {
|
|||||||
@Override
|
@Override
|
||||||
public void execute() throws MojoExecutionException, MojoFailureException {
|
public void execute() throws MojoExecutionException, MojoFailureException {
|
||||||
super.execute();
|
super.execute();
|
||||||
if (copyLibraryJS) {
|
if (copyLibraryJS != null && copyLibraryJS.booleanValue()) {
|
||||||
getLog().info("Copying kotlin JS library to " + outputKotlinJSFile);
|
getLog().info("Copying kotlin JS library to " + outputKotlinJSFile);
|
||||||
|
|
||||||
// lets copy the kotlin library into the output directory
|
// lets copy the kotlin library into the output directory
|
||||||
@@ -107,7 +107,7 @@ public class K2JSCompilerMojo extends KotlinCompileMojo {
|
|||||||
throw new MojoExecutionException(e.getMessage(), e);
|
throw new MojoExecutionException(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (appendLibraryJS) {
|
if (appendLibraryJS != null && appendLibraryJS.booleanValue()) {
|
||||||
getLog().info("Appending Kotlin Library JS to the generated file " + outputFile);
|
getLog().info("Appending Kotlin Library JS to the generated file " + outputFile);
|
||||||
|
|
||||||
// lets copy the kotlin library into the output directory
|
// lets copy the kotlin library into the output directory
|
||||||
|
|||||||
Reference in New Issue
Block a user