1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 09:08:49 -05:00

Fixed potential null pointer access

This commit is contained in:
cketti 2011-01-19 00:13:58 +00:00
parent 8f2623e33c
commit 72d2d24cec

View File

@ -658,13 +658,15 @@ public class LocalStore extends Store implements Serializable
else else
{ {
Log.e(K9.LOG_TAG, "asked to compute account statistics for an impossible folder mode " + displayMode); Log.e(K9.LOG_TAG, "asked to compute account statistics for an impossible folder mode " + displayMode);
} stats.unreadMessageCount = 0;
cursor.moveToFirst(); stats.flaggedMessageCount = 0;
stats.unreadMessageCount = cursor.getInt(0); // message count
stats.flaggedMessageCount = cursor.getInt(1); // message count
return null; return null;
}
cursor.moveToFirst();
stats.unreadMessageCount = cursor.getInt(0);
stats.flaggedMessageCount = cursor.getInt(1);
return null;
} }
finally finally
{ {