7040150: Indexing Error in CachedRowSetImpl.removeCurrentRow
Reviewed-by: smarks
This commit is contained in:
parent
df7a03a4c3
commit
4e98f838c8
@ -1666,7 +1666,7 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
*/
|
||||
protected void removeCurrentRow() {
|
||||
((Row)getCurrentRow()).setDeleted();
|
||||
rvh.remove(cursorPos);
|
||||
rvh.remove(cursorPos - 1);
|
||||
--numRows;
|
||||
}
|
||||
|
||||
@ -6349,7 +6349,6 @@ public class CachedRowSetImpl extends BaseRowSet implements RowSet, RowSetIntern
|
||||
// this can happen if deleted rows are being shown
|
||||
if (row.getDeleted() == true) {
|
||||
removeCurrentRow();
|
||||
--numRows;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user