Check if history dates are loaded before trying to process a new message in the history

cusax-fix
Yana Stamcheva 19 years ago
parent 2329000e20
commit efc14431a4

@ -599,6 +599,10 @@ private void processMessage(Contact contact, Date timestamp,
{
int lastDateIndex = datesPanel.getDatesNumber() - 1;
// If dates aren't yet loaded we don't process the message.
if(lastDateIndex < 0)
return;
Date lastDate = datesPanel.getDate(lastDateIndex);
if(lastDate != null

Loading…
Cancel
Save