Skip to content

Commit 5ad35c8

Browse files
committed
[optimize] Optimise updating Node Proxies
1 parent 2ef616f commit 5ad35c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exist-core/src/main/java/org/exist/dom/persistent/NodeProxy.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ public NodeProxy(final Expression expression, final DocumentImpl doc, final Node
236236
public void update(final ElementImpl element) {
237237
invalidateCachedNode();
238238
this.doc = element.getOwnerDocument();
239-
this.nodeType = UNKNOWN_NODE_TYPE;
240-
this.internalAddress = StoredNode.UNKNOWN_NODE_IMPL_ADDRESS;
239+
this.nodeType = Node.ELEMENT_NODE;
240+
this.internalAddress = element.getInternalAddress();
241241
this.nodeId = element.getNodeId();
242242
this.match = null;
243243
this.context = null;

0 commit comments

Comments
 (0)