diff --git a/layer-domain/src/main/java/org/layer/domain/answer/entity/Answers.java b/layer-domain/src/main/java/org/layer/domain/answer/entity/Answers.java index 53317fbb..6507c8fd 100644 --- a/layer-domain/src/main/java/org/layer/domain/answer/entity/Answers.java +++ b/layer-domain/src/main/java/org/layer/domain/answer/entity/Answers.java @@ -70,6 +70,10 @@ public long getWriteCount(Long retrospectId) { Set 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()));