Skip to content

Commit

Permalink
hotfix: NPE 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
mikekks committed Sep 11, 2024
1 parent cc27367 commit 051af0b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ public long getWriteCount(Long retrospectId) {

Set<Long> answerMembers = new HashSet<>();

if(!answersByRetrospectId.containsKey(retrospectId)){
return 0L;
}

answersByRetrospectId.get(retrospectId).stream()
.filter(answer -> answer.getAnswerStatus().equals(AnswerStatus.DONE))
.forEach(answer -> answerMembers.add(answer.getMemberId()));
Expand Down

0 comments on commit 051af0b

Please sign in to comment.