diff --git a/exist-core/src/main/java/org/exist/storage/NativeBroker.java b/exist-core/src/main/java/org/exist/storage/NativeBroker.java index 88bd6ce72cd..485d263f41d 100644 --- a/exist-core/src/main/java/org/exist/storage/NativeBroker.java +++ b/exist-core/src/main/java/org/exist/storage/NativeBroker.java @@ -3033,7 +3033,7 @@ public Object start() { } }.run(); // create a copy of the old doc to copy the nodes into it - final DocumentImpl tempDoc = new DocumentImpl(null, null, doc.getCollection(), doc.getDocId(), doc.getFileURI()); + final DocumentImpl tempDoc = new DocumentImpl(null, doc.getDocId(), doc); tempDoc.copyOf(this, doc, doc); final StreamListener listener = getIndexController().getStreamListener(doc, ReindexMode.STORE); // copy the nodes