We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29692c1 commit f2abe8aCopy full SHA for f2abe8a
exist-core/src/main/java/org/exist/dom/memtree/AttrImpl.java
@@ -124,7 +124,11 @@ public void setTextContent(final String textContent) throws DOMException {
124
125
@Override
126
public Element getOwnerElement() {
127
- return (Element) document.getNode(document.attrParent[nodeNumber]);
+ final Node node = document.getNode(document.attrParent[nodeNumber]);
128
+ if (node != null && node.getNodeType() == Node.ELEMENT_NODE) {
129
+ return (Element) node;
130
+ }
131
+ return null;
132
}
133
134
0 commit comments