Skip to content

Xpp3DomWriter.write(null) throws confusing NPE #396

Description

@elharo

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions