Skip to content

[binder] IllegalArgumentException if no local name is there for #1807

@laeubi

Description

@laeubi

If one tries to update an element with binder that is not @XmlRootElement the following code is called

if(!bi.isElement())
jaxbObject = new JAXBElement(new QName(e.getNamespaceURI(),e.getLocalName()),bi.jaxbType,jaxbObject);

but it could happen that localName is null resulting in an IllegalArgumentException from QName conctructor. In such a case there should either be an JaxbException if this is illegal or fall back to the element name.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions