diff --git a/metadata-io/src/main/java/com/linkedin/metadata/entity/EntityServiceImpl.java b/metadata-io/src/main/java/com/linkedin/metadata/entity/EntityServiceImpl.java index c584b8ac4d7a27..69135a8a64805d 100644 --- a/metadata-io/src/main/java/com/linkedin/metadata/entity/EntityServiceImpl.java +++ b/metadata-io/src/main/java/com/linkedin/metadata/entity/EntityServiceImpl.java @@ -1041,6 +1041,7 @@ private List ingestAspectsToLocalDB( inputBatch, DEFAULT_MAX_TRANSACTION_RETRY) .stream() + .filter(Objects::nonNull) .flatMap(List::stream) .collect(Collectors.toList()); }