diff --git a/src/main/java/com/hanaro/triptogether/tripPlace/dto/response/TripPlaceResDto.java b/src/main/java/com/hanaro/triptogether/tripPlace/dto/response/TripPlaceResDto.java index 27d432e..61355d7 100644 --- a/src/main/java/com/hanaro/triptogether/tripPlace/dto/response/TripPlaceResDto.java +++ b/src/main/java/com/hanaro/triptogether/tripPlace/dto/response/TripPlaceResDto.java @@ -22,7 +22,7 @@ public TripPlaceResDto(TripPlace tripPlace) { this.tripPlaceIdx = tripPlace.getTripPlaceIdx(); this.tripDate = tripPlace.getTripDate(); this.placeOrder = tripPlace.getPlaceOrder(); - this.place = tripPlace.getPlace().toPlace(); + this.place = tripPlace.getPlace() == null ? null : tripPlace.getPlace().toPlace(); this.placeAmount = tripPlace.getPlaceAmount(); this.placeMemo = tripPlace.getPlaceMemo(); this.replyCount = tripPlace.getTripReplies().size();