From d8f18ef5163197ea6abbf0489a0b47d1d339671e Mon Sep 17 00:00:00 2001 From: sanghee0820 Date: Fri, 15 Nov 2024 14:15:17 +0900 Subject: [PATCH] =?UTF-8?q?[fix]=20=EB=B0=98=ED=99=98=EA=B0=92=20=EB=B3=80?= =?UTF-8?q?=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../team7/inplace/place/application/dto/PlaceDetailInfo.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/team7/inplace/place/application/dto/PlaceDetailInfo.java b/src/main/java/team7/inplace/place/application/dto/PlaceDetailInfo.java index 40e91c65..5e6fd120 100644 --- a/src/main/java/team7/inplace/place/application/dto/PlaceDetailInfo.java +++ b/src/main/java/team7/inplace/place/application/dto/PlaceDetailInfo.java @@ -67,7 +67,9 @@ public static MenuInfos of( List menuImgUrls, List menus, LocalDateTime menuUpdatedAt) { - + menuImgUrls = menuImgUrls.stream() + .filter(url -> url != null && url.isBlank()) + .toList(); List menuList = menus.stream() .map(menu -> new MenuInfo(menu.getPrice(), menu.isRecommend(), menu.getMenuName(), menu.getMenuImgUrl().trim(), menu.getDescription()))