Skip to content

Commit

Permalink
fix(NPE): fix NPE in EntityService
Browse files Browse the repository at this point in the history
* On some database failures null is found in the stream, filter it to avoid red herring stacktrace
  • Loading branch information
david-leifker committed Sep 13, 2024
1 parent 54b8ce3 commit 5ca5084
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,7 @@ private List<UpdateAspectResult> ingestAspectsToLocalDB(
inputBatch,
DEFAULT_MAX_TRANSACTION_RETRY)
.stream()
.filter(Objects::nonNull)
.flatMap(List::stream)
.collect(Collectors.toList());
}
Expand Down

0 comments on commit 5ca5084

Please sign in to comment.