Skip to content

Commit

Permalink
fix: 장소 이미지가 null인 경우 에러가 발생하던 문제 해결
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeuk520 committed Sep 29, 2024
1 parent aad97ef commit 22dc015
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/ku/covigator/service/CourseService.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ public void addCommunityCourse(Long memberId, PostCourseRequest request, List<Mu
//코스_장소 등록
List<CoursePlace> coursePlaces = request.toCoursePlaceEntity(course);

// S3에 프로필 이미지 업로드
if (!images.isEmpty()) {
// S3에 장소 이미지 업로드
if (images != null && !images.isEmpty()) {
for (int iter = 0; iter < images.size(); iter++) {
String uploadedImageUrl = s3Service.uploadImage(images.get(iter), "place");
coursePlaces.get(iter).addImageUrl(uploadedImageUrl);
Expand Down

0 comments on commit 22dc015

Please sign in to comment.