Skip to content

Commit 8bac621

Browse files
committed
fix: 분실물 상태 null 방어 처리
1 parent 8ea30a2 commit 8bac621

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/_ITHON/ReturnZone/domain/chat/dto/res/ChatRoomResponseDto.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,6 @@ public ChatRoomResponseDto(ChatRoom chatRoom, Member otherMember, String lastMes
4646
this.lastMessage = lastMessage;
4747
this.lastMessageAt = chatRoom.getLastMessageAt();
4848
this.unreadCount = unreadCount;
49-
this.lostPostStatus = lostPostStatus.getDescription();
49+
this.lostPostStatus = lostPostStatus != null ? lostPostStatus.getDescription() : null;
5050
}
5151
}

0 commit comments

Comments
 (0)