GMOD / jbrowse-components

Source code for JBrowse 2, a modern React-based genome browser
https://jbrowse.org/jb2
Apache License 2.0
205 stars 61 forks source link

Fix crash after navToLocString in some cases #4535

Closed cmdcolin closed 1 month ago

cmdcolin commented 1 month ago

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)