fillWindow's start position must be smaller than getCount value

Change-Id: I3664ae8f6172f02bf6e2472320e79e3bf8683cc0
This commit is contained in:
Tatsuo Nagamatsu
2010-06-07 02:07:51 +09:00
parent fb59fbf14e
commit 6d3acde839

View File

@@ -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();