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

Fix edge case in MergeCursor

This commit is contained in:
cketti 2012-10-31 01:06:26 +01:00
parent b0ef68dfed
commit a54666e020

View File

@ -293,7 +293,7 @@ public class MergeCursor implements Cursor {
int smallest = -1;
for (int i = 0, len = mCursors.length; i < len; i++) {
if (mCursors[i] == null || mCursors[i].isLast()) {
if (mCursors[i] == null || mCursors[i].getCount() == 0 || mCursors[i].isLast()) {
continue;
}