Closed JessHolle closed 1 month ago
Thank you for raising this. Class.getClassLoader() returning null is puzzling, to say the least, but the fact that you don't see this with picocli 4.7.5 suggests that it is related to a recent change.
This may be difficult to investigate without a way to reproduce the issue. Is your application in a public repo somewhere?
I think I found the cause: The change in https://github.com/remkop/picocli/pull/2107 (PropertiesDefaultProvider improvement) is missing some defensive coding.
I am getting a NullPointerException apparently from within picocli code when attempting to upgrade to 4.7.6 from 4.7.5 (where the app works AOK).
I get
The related annotations are:
Setting
-Dpicocli.trace
, I get loads of INFO messages along these lines. All without any further stack traces or the like, unfortunately.With 4.7.5 I get no such messages.
In case it matters this is for an application wrapped up as a single jar and being invoked via
java -jar
(and built via thecom.github.johnrengelman.shadow
Gradle plugin).