forked from cashapp/sqldelight
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix IndexOutOfBounds after getRefreshKey
It's possible that on a paging source that's not in the initial generation, we fail with an `IndexOutOfBoundsException`. This is caused when the underlying data source undergoes a delete, which then invalidates the paging source, which then calls `getRefreshKey`. In the event that the the refresh key is the very last index of the previous paging source, we would fail with the above exception because that index does not exist in the next generation paging source. Closes cashapp#2434.
- Loading branch information
1 parent
b50f0b8
commit a466f0c
Showing
2 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters