Skip to content

Commit e82ff9e

Browse files
Romain GuyAndroid Code Review
authored andcommitted
Merge "fillWindow's start position must be smaller than getCount value"
2 parents 893e2b6 + 6d3acde commit e82ff9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/database/AbstractCursor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public final boolean moveToPosition(int position) {
204204
* @param window
205205
*/
206206
public void fillWindow(int position, CursorWindow window) {
207-
if (position < 0 || position > getCount()) {
207+
if (position < 0 || position >= getCount()) {
208208
return;
209209
}
210210
window.acquireReference();

0 commit comments

Comments
 (0)