fillWindow's start position must be smaller than getCount value
Change-Id: I3664ae8f6172f02bf6e2472320e79e3bf8683cc0
This commit is contained in:
@@ -204,7 +204,7 @@ public abstract class AbstractCursor implements CrossProcessCursor {
|
||||
* @param window
|
||||
*/
|
||||
public void fillWindow(int position, CursorWindow window) {
|
||||
if (position < 0 || position > getCount()) {
|
||||
if (position < 0 || position >= getCount()) {
|
||||
return;
|
||||
}
|
||||
window.acquireReference();
|
||||
|
||||
Reference in New Issue
Block a user