From c9df632bf09f0db07f3b7c8381d653fa315493a2 Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 3 Jul 2024 09:44:48 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20=ED=8F=90=EA=B8=B0=EC=A7=84=ED=96=89?= =?UTF-8?q?=EC=82=AC=EC=A7=84=20=EC=A0=84=EC=B2=B4=20=EC=82=AD=EC=A0=9C?= =?UTF-8?q?=EC=8B=9C=20=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/nims/service/bean/BizNimsServiceBean.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java b/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java index 5912074..fb2bfff 100644 --- a/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java +++ b/src/main/java/cokr/xit/adds/biz/nims/service/bean/BizNimsServiceBean.java @@ -330,12 +330,15 @@ public class BizNimsServiceBean extends AbstractServiceBean implements BizNimsSe // DB 파일 정보 삭제 bizNimsMapper.deleteFileInfo(map); - int idx = 1; - for (MultipartFile mf : files) { - uploadFileSave(Constants.FILE_INF_TYPE.DSUSE_IMG.getCode(), reqDto.getDscdmngId(), - String.valueOf(idx), mf); - idx++; + if(files != null) { + int idx = 1; + for (MultipartFile mf : files) { + uploadFileSave(Constants.FILE_INF_TYPE.DSUSE_IMG.getCode(), reqDto.getDscdmngId(), + String.valueOf(idx), mf); + idx++; + } } + //} } else {