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:
parent
8f2623e33c
commit
72d2d24cec
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user