Bullet proofing to make IMAP fetches not break when folders have insane

default visible limits.
This commit is contained in:
Jesse Vincent 2010-06-08 02:37:18 +00:00
parent 845cd2a4da
commit 87a567ea40
1 changed files with 5 additions and 0 deletions

View File

@ -1129,6 +1129,11 @@ public class MessagingController implements Runnable
int visibleLimit = localFolder.getVisibleLimit();
if (visibleLimit < 1)
{
visibleLimit = K9.DEFAULT_VISIBLE_LIMIT;
}
Message[] remoteMessageArray = new Message[0];
final ArrayList<Message> remoteMessages = new ArrayList<Message>();
// final ArrayList<Message> unsyncedMessages = new ArrayList<Message>();