Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash after navToLocString in some cases #4535

Merged
merged 1 commit into from
Aug 28, 2024
Merged

Conversation

cmdcolin
Copy link
Collaborator

during office hours, saw an issue where there was a crash after a navToLocString

the code assumed that contentBlocks[0] was not undefined, but there may be situations where it is undefined for some amount of time (during loading or if bpPerPx/offsetPx is temporarily way off screen for example)

this code that causes the crash was introduced in v2.13.0 (recently)

@cmdcolin cmdcolin added the bug Something isn't working label Aug 27, 2024
@cmdcolin cmdcolin merged commit e735e99 into main Aug 28, 2024
9 checks passed
@cmdcolin cmdcolin deleted the content_blocks_crash branch August 28, 2024 04:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant