diff --git a/src/main/java/sirius/biz/jobs/batch/file/XMLImportJob.java b/src/main/java/sirius/biz/jobs/batch/file/XMLImportJob.java index 994bbcddf..8cbcd1947 100644 --- a/src/main/java/sirius/biz/jobs/batch/file/XMLImportJob.java +++ b/src/main/java/sirius/biz/jobs/batch/file/XMLImportJob.java @@ -140,10 +140,10 @@ public void process(StructuredNode node) { } }); } else { - reader.addHandler(name, structuredNode -> { - AfterNodeLoadEvent event = new AfterNodeLoadEvent(structuredNode, importer.getContext()); + reader.addHandler(name, node -> { + AfterNodeLoadEvent event = new AfterNodeLoadEvent(node, importer.getContext()); importer.getContext().getEventDispatcher().handleEvent(event); - originalHandler.process(structuredNode); + originalHandler.process(node); }); } });