Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
laeubi opened this issue Jul 20, 2024 · 0 comments · May be fixed by #1808
Open

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

laeubi opened this issue Jul 20, 2024 · 0 comments · May be fixed by #1808

Comments

@laeubi
Copy link

laeubi commented Jul 20, 2024

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.

laeubi pushed a commit to laeubi/jaxb-ri that referenced this issue Jul 20, 2024
@laeubi laeubi linked a pull request Jul 20, 2024 that will close this issue
laeubi added a commit to laeubi/jaxb-ri that referenced this issue Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant