IndexOutOfBoundsException fixed

cusax-fix
Yana Stamcheva 20 years ago
parent 1a8cf9f361
commit 8de3a8c835

@ -294,6 +294,11 @@ public CallList getCallList()
public void addCallRecord(int index, GuiCallParticipantRecord callRecord)
{
if(callList.getModel().getSize() == 0) {
callList.addItem(processDate(callRecord.getStartTime()));
index ++;
}
this.callList.addItem(callRecord, index);
String participantName = callRecord.getParticipantName();

@ -166,7 +166,7 @@ public void callParticipantRemoved(CallParticipantEvent evt)
participantPanel.getEndTime());
callManager.getMainFrame().getCallListManager().addCallRecord(
1, participantRecord);
0, participantRecord);
//remove the participant panel for this participant
this.participantsPanels.remove(participant);

Loading…
Cancel
Save