Skip to content

Commit

Permalink
avoid adding empty object to ilmd during event generation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aravinda Baliga B committed May 24, 2024
1 parent b92e7f5 commit 2dea0dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ private void configureCommons(final ObjectEvent e) {
return Stream.empty();
})
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (r1, r2) -> r1));
e.setIlmdXml(ilmdMap);
e.setIlmdXml(ilmdMap.isEmpty() ? null : ilmdMap);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private void configureCommons(final TransformationEvent e) {
return Stream.empty();
})
.collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue));
e.setIlmdXml(ilmdMap);
e.setIlmdXml(ilmdMap.isEmpty() ? null : ilmdMap);
}
}

Expand Down

0 comments on commit 2dea0dd

Please sign in to comment.