diff --git a/iped-engine/src/main/java/iped/engine/task/ParsingTask.java b/iped-engine/src/main/java/iped/engine/task/ParsingTask.java index b4c1136cb5..b9ebd8c8b8 100644 --- a/iped-engine/src/main/java/iped/engine/task/ParsingTask.java +++ b/iped-engine/src/main/java/iped/engine/task/ParsingTask.java @@ -554,7 +554,9 @@ public void parseEmbedded(InputStream inputStream, ContentHandler handler, Metad evidence.setHasChildren(true); // protection for future concurrent access, see #794 - metadata = new SyncMetadata(metadata); + if (!(metadata instanceof SyncMetadata)) { + metadata = new SyncMetadata(metadata); + } subItem.setMetadata(metadata); boolean updateInputStream = false;