Skip to content

Commit

Permalink
fix: handle case where no stream stats are present for the stream (#1…
Browse files Browse the repository at this point in the history
…2860)
  • Loading branch information
malikdiarra committed Jun 18, 2024
1 parent 7ad6444 commit 07e415a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ private ConnectionLastJobPerStreamReadItem buildLastJobPerStreamReadItem(
memo.putIfAbsent(jobRead.getId(), buildStreamStatsMap(jobRead));

// retrieve the stat for the stream of interest from the memo
final Optional<StreamStats> statsForThisStream = Optional.of(memo.get(jobRead.getId()).get(streamDescriptor));
final Optional<StreamStats> statsForThisStream = Optional.ofNullable(memo.get(jobRead.getId()).get(streamDescriptor));

return new ConnectionLastJobPerStreamReadItem()
.streamName(streamDescriptor.getName())
Expand Down

0 comments on commit 07e415a

Please sign in to comment.