Skip to content

Commit 4c70fac

Browse files
authored
♻️refractor: startTime & endTime null 처리 (#114)
2 parents 0406fad + 9f56161 commit 4c70fac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/withtime/be/withtimebe/domain/date/converter/DateConverter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ public static DateResponseDTO.DatePlace createDatePlace(DatePlace datePlace,
123123
.roadNameAddress(datePlace.getRoadNameAddress())
124124
.lotNumberAddress(datePlace.getLotNumberAddress())
125125
.placeType(datePlace.getPlaceType())
126-
.startTime(LocalTime.from(startTime))
127-
.endTime(LocalTime.from(endTime))
126+
.startTime(startTime != null ? LocalTime.from(startTime) : null)
127+
.endTime(endTime != null ? LocalTime.from(endTime) : null)
128128
.signatureDish(toSignatureDish(datePlace.getItems() == null || datePlace.getItems().isEmpty() ? null : datePlace.getItems().get(0)))
129129
.placeCategoryResponseList(placeCategoryResponseList)
130130
.build();

0 commit comments

Comments
 (0)