1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-27 19:52:17 -05:00

Avoid NPE

This commit is contained in:
cketti 2013-03-05 03:26:09 +01:00
parent 41244ef448
commit 5270ebd629

View File

@ -3304,6 +3304,10 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
}
public boolean isLoadFinished() {
if (mCursorValid == null) {
return false;
}
boolean loadFinished = true;
for (int i = 0; i < mCursorValid.length; i++) {
loadFinished &= mCursorValid[i];