Don't choke on malformed UIDL responses (POP3).
Fixes issue 2252
This commit is contained in:
parent
0fd058c2e6
commit
525d9a2ef9
1 changed files with 11 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue