badass-jlink-plugin
badass-jlink-plugin copied to clipboard
Unexplained NullPointerException in JlinkTask when no main class is specified
Here's what came out of gradlew jlink --stacktrace
What happened?
I am building a native installer for this project. It's a simple analog clock. It runs fine in IntelliJ 2020.1.2. However, I noticed that the plugin throws a NullPointerException. I ended up solving the problem by specifying a main class.
How can it be fixed?
Use Objects.requireNonNull()
and a simple error message.
Thanks for reporting this issue! Fixed in 2.21.2.