mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-17 21:32:26 -05:00
Work around a weird NPE in WebDAV sync reported by Jon Blow
This commit is contained in:
parent
5dc1409a10
commit
0543183b11
@ -1590,7 +1590,11 @@ public class WebDavStore extends Store {
|
||||
listener.messageStarted(wdMessage.getUid(), i, count);
|
||||
}
|
||||
|
||||
try {
|
||||
wdMessage.setFlagInternal(Flag.SEEN, uidToReadStatus.get(wdMessage.getUid()));
|
||||
} catch (NullPointerException e) {
|
||||
Log.v(K9.LOG_TAG,"Under some weird circumstances, setting the read status when syncing from webdav threw an NPE. Skipping.");
|
||||
}
|
||||
|
||||
if (listener != null) {
|
||||
listener.messageFinished(wdMessage, i, count);
|
||||
|
Loading…
Reference in New Issue
Block a user