Hello everyone, Here's something that's been bugging me for a while:
In a plugin's <configuration> block (in this case JReleaser) there are elements that are mapped to Map instances (no pun intended) such that for example <jreleaser> <assemble> <jpackage> <app> <!-- object properties --> </app> </jpackage> <assemble> </jreleaser> In this case <jpackage> is of type Map<String, Jpackage>, thus <app> is the entry's key. As long as the entry's value (an instance of Jpackage) is properly configured then everything works. So far so good. But, if the entry's values is misconfigured by defining an XML element that does not exist then the Map will contain a key "app" associated with a _null_ value!! And here lies the problem. I'd expected the misconfiguration to trigger an error early during parsing but in reality what happens is that the _null_ is added to the Map and the plugin fails much later in its execution because of an NPE. Is there anything that can be done to force this error to occur much earlier? TIA Andres ------------------------------------------- Java Champion; Groovy Enthusiast https://andresalmiray.com https://www.linkedin.com/in/aalmiray -- What goes up, must come down. Ask any system administrator. There are 10 types of people in the world: Those who understand binary, and those who don't. To understand recursion, we must first understand recursion.