메시징 플랫폼을 수행하고 있습니다 .Msgdesc는 내 메시지이지만 누군가는 메시지를 보내지 만 누군가는 메시지를 보내지 않습니다. 그래서 ı는 msgdesc.if에 날짜가 있습니다. ı havent는 모든 데이터가 있습니다. ı 아무 것도하지 않고 싶지만,보고 싶습니다. 또한 이름 + surname.But와 msgdesc java.lang.ArrayIndexOutOfBoundsException : length = 0; index = 1 아무도 도와 줄 수 있습니까?java.lang.ArrayIndexOutOfBoundsException : 길이 = 0; index = 1
코드 :
for (int i = 0; i < midArr.length; i++) {
//getting desc from db
getMessagedbXML = messagedbInstance.getMessages(mid,midArr[i]);
parseXMLDB(getMessagedbXML);
UserList=new String[midArr.length];
**//getting error here**
if((msgdesc[i].length()==0)) {
UserList[i] = nameArr[i]+" "+surnameArr[i];
} else {
UserList[i] = nameArr[i]+" "+surnameArr[i]+" "+msgdesc[i];
}
}
을 (
msgdesc
이 유형의 모르는)? 전체 스택 추적을 게시하십시오. – m0skit0여기서 오류가 발생합니다. if ((msgdesc [i] .length() == 0)) { – DuyguK