badass-jlink-plugin icon indicating copy to clipboard operation
badass-jlink-plugin copied to clipboard

Unexplained NullPointerException in JlinkTask when no main class is specified

Open jgcodes2020 opened this issue 4 years ago • 1 comments

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.

jgcodes2020 avatar Jul 27 '20 01:07 jgcodes2020

Thanks for reporting this issue! Fixed in 2.21.2.

siordache avatar Aug 02 '20 16:08 siordache