mirror of
https://github.com/moparisthebest/k-9
synced 2024-12-25 00:58:50 -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
|
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();
|
cursor.moveToFirst();
|
||||||
stats.unreadMessageCount = cursor.getInt(0); // message count
|
stats.unreadMessageCount = cursor.getInt(0);
|
||||||
stats.flaggedMessageCount = cursor.getInt(1); // message count
|
stats.flaggedMessageCount = cursor.getInt(1);
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user