From 765b87049eb00747ccc45c684b098c0951845960 Mon Sep 17 00:00:00 2001 From: tolag3 Date: Wed, 25 Oct 2023 10:54:25 +0900 Subject: [PATCH] =?UTF-8?q?=EC=A0=84=EC=9E=90=EC=A1=B0=EC=A0=95=EC=8B=9C?= =?UTF-8?q?=EC=8A=A4=ED=85=9C=20=EC=BB=A4=EB=B0=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 오류 수정 --- .../dlvinfo/web/DlvinfoController.java | 40 +++++++++++-------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/src/main/java/kcc/kccadr/adjPgrMgr/dlvinfo/web/DlvinfoController.java b/src/main/java/kcc/kccadr/adjPgrMgr/dlvinfo/web/DlvinfoController.java index f38964b5..bd4930c0 100644 --- a/src/main/java/kcc/kccadr/adjPgrMgr/dlvinfo/web/DlvinfoController.java +++ b/src/main/java/kcc/kccadr/adjPgrMgr/dlvinfo/web/DlvinfoController.java @@ -302,10 +302,12 @@ public class DlvinfoController { // 신청인 add for(int i = 0 ; i < appliCantNmList.length; i++) { String[] appliCantNmListInfo = appliCantNmList[i].split("!"); - DlvinfoVO rpplInfo = new DlvinfoVO(); - rpplInfo.setRpplNm(appliCantNmListInfo[0]); - rpplInfo.setRpplTy(appliCantNmListInfo[1]); - rpplList.add(rpplInfo); + if(appliCantNmListInfo.length > 0) { + DlvinfoVO rpplInfo = new DlvinfoVO(); + rpplInfo.setRpplNm(appliCantNmListInfo[0]); + rpplInfo.setRpplTy(appliCantNmListInfo[1]); + rpplList.add(rpplInfo); + } } @@ -314,10 +316,12 @@ public class DlvinfoController { //피신청인 add for(int i = 0 ; i < resPonDentNmList.length; i++) { String[] resPonDentNmInfo = resPonDentNmList[i].split("!"); - DlvinfoVO rpplInfo = new DlvinfoVO(); - rpplInfo.setRpplNm(resPonDentNmInfo[0]); - rpplInfo.setRpplTy(resPonDentNmInfo[1]); - rpplList.add(rpplInfo); + if(resPonDentNmInfo.length > 0) { + DlvinfoVO rpplInfo = new DlvinfoVO(); + rpplInfo.setRpplNm(resPonDentNmInfo[0]); + rpplInfo.setRpplTy(resPonDentNmInfo[1]); + rpplList.add(rpplInfo); + } } String[] appliCantDNmList = new String[5]; @@ -331,10 +335,12 @@ public class DlvinfoController { //신청대리인 add for(int i = 0 ; i < appliCantDNmList.length; i++) { String[] appliCantDNmInfo = appliCantDNmList[i].split("!"); - DlvinfoVO rpplInfo = new DlvinfoVO(); - rpplInfo.setRpplNm(appliCantDNmInfo[0]); - rpplInfo.setRpplTy(appliCantDNmInfo[1]); - rpplList.add(rpplInfo); + if(appliCantDNmInfo.length > 0) { + DlvinfoVO rpplInfo = new DlvinfoVO(); + rpplInfo.setRpplNm(appliCantDNmInfo[0]); + rpplInfo.setRpplTy(appliCantDNmInfo[1]); + rpplList.add(rpplInfo); + } } } String[] resPonDentDNm = new String[5]; @@ -344,10 +350,12 @@ public class DlvinfoController { //피신청대리인 add for(int i = 0 ; i < resPonDentDNm.length; i++) { String[] resPonDentDNmInfo = resPonDentDNm[i].split("!"); - DlvinfoVO rpplInfo = new DlvinfoVO(); - rpplInfo.setRpplNm(resPonDentDNmInfo[0]); - rpplInfo.setRpplTy(resPonDentDNmInfo[1]); - rpplList.add(rpplInfo); + if(resPonDentDNmInfo.length > 0) { + DlvinfoVO rpplInfo = new DlvinfoVO(); + rpplInfo.setRpplNm(resPonDentDNmInfo[0]); + rpplInfo.setRpplTy(resPonDentDNmInfo[1]); + rpplList.add(rpplInfo); + } } }