You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "elharo (via GitHub)" <gi...@apache.org> on 2026/07/01 13:30:49 UTC

[I] Xpp3DomWriter.write(null) throws confusing NPE [maven-shared-utils]

elharo opened a new issue, #396:
URL: https://github.com/apache/maven-shared-utils/issues/396

   All public `write` methods in `Xpp3DomWriter` accept an `Xpp3Dom dom` parameter documented as `@param dom Xpp3Dom` but without null checks. Passing `null` for `dom` causes a `NullPointerException` at line 65 (`dom.getName()`).
   
   Fix: add null check (with clear message) at the shared `write(XMLWriter, Xpp3Dom, boolean)` method.


-- 
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: issues-unsubscribe@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Xpp3DomWriter.write(null) throws confusing NPE [maven-shared-utils]

Posted by "elharo (via GitHub)" <gi...@apache.org>.
elharo closed issue #396: Xpp3DomWriter.write(null) throws confusing NPE
URL: 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: issues-unsubscribe@maven.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org