elharo opened a new pull request, #397: URL: https://github.com/apache/maven-shared-utils/pull/397
All public `write` methods accept an `Xpp3Dom dom` parameter without null checks. Passing `null` throws a `NullPointerException` deep inside the delegation chain (at `dom.getName()` in the `write(XMLWriter, Xpp3Dom, boolean)` method), producing a confusing stack trace for callers. **Fix:** Added `Objects.requireNonNull(dom, "dom must not be null")` at the entry to the shared `write(XMLWriter, Xpp3Dom, boolean)` method, so callers get a clear message immediately. Fixes https://github.com/apache/maven-shared-utils/issues/396 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
