Skip to content

Avoid crashing in ReaderAnnotation:isItemInPositionOrderRolling#12493

Closed
Hzj-jie wants to merge 2 commits into
koreader:masterfrom
Hzj-jie:bookmark-sort-crash
Closed

Avoid crashing in ReaderAnnotation:isItemInPositionOrderRolling#12493
Hzj-jie wants to merge 2 commits into
koreader:masterfrom
Hzj-jie:bookmark-sort-crash

Conversation

@Hzj-jie

@Hzj-jie Hzj-jie commented Sep 9, 2024

Copy link
Copy Markdown
Contributor

When the annotations are invalid - most likely caused by cre change, the sort function should still produce consistent sorting rather than always returning true. Otherwise the table.sort would crash with invalid order function for sorting.
See #12492


This change is Reviewable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants