Skip to content

Commit

Permalink
refactor : null point Exception 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
imenuuu committed Oct 10, 2024
1 parent 6eb7fa8 commit fcb35c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ private TastingNoteResponse.TastingNoteListDTO toTastingNoteListDTO(TastingNote
.wineType(result.getWine().getType())
.isPublic(result.getIsPublic())
.tastingNoteNo(tastingNoteNo.get(result.getId()))
.userNickname(result.getUser().getNickName())
.userNickname(result.getUser() != null ? result.getUser().getNickName() : "알 수 없음")
.noteDate(result.getCreatedAt().toLocalDate().toString())
.build();
}
Expand Down

0 comments on commit fcb35c4

Please sign in to comment.