diff --git a/src/main/java/org/openjfx/JavaFXBaseMojo.java b/src/main/java/org/openjfx/JavaFXBaseMojo.java index de92037..4cbf75f 100644 --- a/src/main/java/org/openjfx/JavaFXBaseMojo.java +++ b/src/main/java/org/openjfx/JavaFXBaseMojo.java @@ -389,8 +389,8 @@ CommandLine getExecutablePath(String executable, Map enviro, Fil if (exec == null && toolchainManager != null) { Toolchain toolchain = toolchainManager.getToolchainFromBuildContext("jdk", session); - getLog().info("Toolchain in javafx-maven-plugin " + toolchain); if (toolchain != null) { + getLog().info("Toolchain in javafx-maven-plugin " + toolchain); exec = toolchain.findTool("java"); getLog().debug("Tool in toolchain in javafx-maven-plugin " + exec); }