1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 08:38:51 -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

@ -657,14 +657,16 @@ public class LocalStore extends Store implements Serializable
}
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;
stats.flaggedMessageCount = 0;
return null;
}
cursor.moveToFirst();
stats.unreadMessageCount = cursor.getInt(0); // message count
stats.flaggedMessageCount = cursor.getInt(1); // message count
stats.unreadMessageCount = cursor.getInt(0);
stats.flaggedMessageCount = cursor.getInt(1);
return null;
}
finally
{