1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-08-13 17:03:48 -04:00

Don't choke on malformed UIDL responses (POP3).

Fixes issue 2252
This commit is contained in:
cketti 2010-09-02 23:59:20 +00:00
parent 0fd058c2e6
commit 525d9a2ef9

View File

@ -458,6 +458,17 @@ public class Pop3Store extends Store
for (int msgNum = start; msgNum <= end; msgNum++)
{
Pop3Message message = mMsgNumToMsgMap.get(msgNum);
if (message == null)
{
/*
* There could be gaps in the message numbers or malformed
* responses which lead to "gaps" in mMsgNumToMsgMap.
*
* See issue 2252
*/
continue;
}
if (listener != null)
{
listener.messageStarted(message.getUid(), i++, (end - start) + 1);