Skip to content

Commit

Permalink
add check for attribute type to get namespace uri if null
Browse files Browse the repository at this point in the history
  • Loading branch information
Carsten Hollmann committed Mar 16, 2021
1 parent 9eb9862 commit fa0b2a0
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ public DecoderKey getDecoderKey(XmlObject doc) {
domNode.getFirstChild().getNextSibling() != null) {
namespaceURI = domNode.getFirstChild().getNextSibling().getNamespaceURI();
}
if (namespaceURI == null && doc.schemaType().isAttributeType()) {
namespaceURI = doc.schemaType().getAttributeTypeAttributeName().getNamespaceURI()
}

return new XmlNamespaceDecoderKey(namespaceURI, doc.getClass());
}
Expand Down

0 comments on commit fa0b2a0

Please sign in to comment.