mirror of
https://github.com/moparisthebest/k-9
synced 2025-02-25 15:11:52 -05:00
Avoid NPE
This commit is contained in:
parent
41244ef448
commit
5270ebd629
@ -3304,6 +3304,10 @@ public class MessageListFragment extends SherlockFragment implements OnItemClick
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean isLoadFinished() {
|
public boolean isLoadFinished() {
|
||||||
|
if (mCursorValid == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
boolean loadFinished = true;
|
boolean loadFinished = true;
|
||||||
for (int i = 0; i < mCursorValid.length; i++) {
|
for (int i = 0; i < mCursorValid.length; i++) {
|
||||||
loadFinished &= mCursorValid[i];
|
loadFinished &= mCursorValid[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user