From 057b316bcbe2745202e7fd25783b98f9bee992ba Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 27 Nov 2011 10:29:45 -0800 Subject: [PATCH] Avoid NPE in getOldestMessageDate Caused by autounboxing a possibly null Long into a long. --- src/com/fsck/k9/mail/store/LocalStore.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/fsck/k9/mail/store/LocalStore.java b/src/com/fsck/k9/mail/store/LocalStore.java index d1ca05a2b..e7b0def3b 100644 --- a/src/com/fsck/k9/mail/store/LocalStore.java +++ b/src/com/fsck/k9/mail/store/LocalStore.java @@ -2812,7 +2812,7 @@ public class LocalStore extends Store implements Serializable { mLastUid = lastUid; } - public long getOldestMessageDate() throws MessagingException { + public Long getOldestMessageDate() throws MessagingException { return database.execute(false, new DbCallback() { @Override public Long doDbWork(final SQLiteDatabase db) {