Avoid NPE in getOldestMessageDate

Caused by autounboxing a possibly null Long into a long.
This commit is contained in:
Andrew Gaul 2011-11-27 10:29:45 -08:00
parent d6acb09988
commit 057b316bcb

View file

@ -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<Long>() {
@Override
public Long doDbWork(final SQLiteDatabase db) {