Skip to content

Boost error: Cannot read properties of null (reading '0') #17014

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

Closed
soetji opened this issue Feb 17, 2022 · 3 comments · Fixed by #19827
Closed

Boost error: Cannot read properties of null (reading '0') #17014

soetji opened this issue Feb 17, 2022 · 3 comments · Fixed by #19827

Comments

@soetji
Copy link

soetji commented Feb 17, 2022

Expected behaviour

No error

Actual behaviour

Error out with Cannot read properties of null (reading '0')

Live demo with steps to reproduce

https://jsfiddle.net/soetji/j96dmf45/

Open the browser console to see the error message.

It will work if you set in the code:
opts.boost.enabled = false;

Product version

Latest

Affected browser(s)

@pawellysy
Copy link
Contributor

pawellysy commented Feb 18, 2022

Hello, @soetji thank you for reporting a bug!

Minimal demo: https://jsfiddle.net/BlackLabel/a2vwnsq6/1/

internal note
The problem seems to be connected with null points, but also some conditions must be met, for bugs to occur:

  • Boost must be enabled
  • The extremes must be manually set for all axes (not necessary to overlap with the part, where the null points are)
  • The data must be passed as an array of values

Workaround

for your example:
https://jsfiddle.net/BlackLabel/fpan9dqv/

Don't set the xAxis extremes, or for each point add its x value

@soetji
Copy link
Author

soetji commented Jul 6, 2022

Is this bug going to be fixed? I know there is a workaround.

@pawellysy
Copy link
Contributor

Hello @soeti, thanks for reaching out to us, and thanks for your patience. We did not schedule the work on this bug at this moment, since other tickets have higher priority. We will take your input into account though. Thanks again!

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

Successfully merging a pull request may close this issue.

3 participants