Skip to content

Commit 5aea98f

Browse files
committed
fix : 활동보고서 이미지 null 체킹 로직 추가
1 parent 13c2932 commit 5aea98f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ddingdong/ddingdongBE/domain/activityreport/controller/ClubActivityReportApiController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,13 @@ public void registerReport(
7676
RegisterActivityReportRequest request = requests.get(index);
7777
Long registeredActivityReportId = activityReportService.register(user, request);
7878

79-
if (index == 0 && !firstImage.isEmpty()) {
79+
if (index == 0 && firstImage != null && !firstImage.isEmpty()) {
8080
fileService.uploadFile(registeredActivityReportId,
8181
Collections.singletonList(firstImage),
8282
IMAGE, ACTIVITY_REPORT);
8383
}
8484

85-
if (index == 1 && !secondImage.isEmpty()) {
85+
if (index == 1 && secondImage != null && !secondImage.isEmpty()) {
8686
fileService.uploadFile(registeredActivityReportId,
8787
Collections.singletonList(secondImage),
8888
IMAGE, ACTIVITY_REPORT);

0 commit comments

Comments
 (0)