null 처리 수정
This commit is contained in:
parent
6d880bbdb0
commit
d7bdace043
@ -289,6 +289,10 @@ public final class MsgSendUtils {
|
||||
smsSpamChkTxt = smsTxt.replaceAll(String.valueOf((char) 13), "");
|
||||
}
|
||||
|
||||
// 이미지 셋팅
|
||||
setImagePathsForMsgSendVO(mjonMsgVO, sendVO);
|
||||
|
||||
|
||||
// == 치환 여부에 따라 처리 로직 분기 ==
|
||||
// 치환 문자가 아닌 경우
|
||||
if (!replaceYN) {
|
||||
@ -298,7 +302,7 @@ public final class MsgSendUtils {
|
||||
hasPerformedSpamCheck = true;
|
||||
}
|
||||
if (!hasPerformedMsgType) {
|
||||
msgTypeResult = getMsgTypeWithByteValidation(sendVO, smsTxt);
|
||||
msgTypeResult = getMsgTypeWithByteValidation(sendVO, smsTxt);
|
||||
if ("INVALID".equals(msgTypeResult)) {
|
||||
statusResponseSet(statusResponse, HttpStatus.BAD_REQUEST, "문자 치환 후 전송 문자 길이를 초과하였습니다.");
|
||||
return false;
|
||||
@ -344,8 +348,6 @@ public final class MsgSendUtils {
|
||||
sendVO.setSubject(mmsTitleTemp);
|
||||
}
|
||||
|
||||
// 이미지 셋팅
|
||||
setImagePathsForMsgSendVO(mjonMsgVO, sendVO);
|
||||
|
||||
|
||||
|
||||
@ -923,7 +925,11 @@ public final class MsgSendUtils {
|
||||
* @return
|
||||
*/
|
||||
public static String getMmsgSubject(String smsTxt, String msgKind) {
|
||||
|
||||
String mmsTitleTemp = "";
|
||||
if(StringUtils.isEmpty(smsTxt)) {
|
||||
return mmsTitleTemp;
|
||||
}
|
||||
// SMS 텍스트를 줄 단위로 나누기
|
||||
String[] split = smsTxt.split("\n");
|
||||
log.info(" : split.length :: [{}]", split.length);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user