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

Fixed bug #2450 -> Update chart throws Exception #4937

Open
wants to merge 2 commits into
base: master
from

Conversation

@Athameon
Copy link

@Athameon Athameon commented Jul 10, 2020

Fixed a IndexOutOfRangeException that occurred irregularly if the chart gets permanently updated.
The bug occurs in the legend renderer. I put the responsible code into a synchronized block and surrounded the critical code by a try-catch. Despite the synchronized, the exception gets sometimes thrown, which the try block catches and replaces the needed vertical space by a cached value.

PR Checklist:

  • I have tested this extensively and it does not break any existing behavior.
  • I have added/updated examples and tests for any new behavior.
  • If this is a significant change, an issue has already been created where the problem / solution was discussed: #4889

PR Description

Fixes a IndexOutOfRangeException if data of a chart is updated permanently.

Introduced synchronized section and surrounded critical code by a try-catch block.

If you update the data permanently (live data), the whole app crashes after seconds, or minutes (irregularly). This can not be caught in the app, but only in the framework.

Fixed a IndexOutOfRangeException that occurred irregularly if the chart gets permanently updated.
The bug occurs in the legend renderer. I put the responsible code into a synchronized block and surrounded the critical code by a try-catch. Despite the synchronized, the exception gets sometimes thrown, which the try block catches and replaces the needed vertical space by a cached value.
Fixed a NullPointerException if calculatedLabelBreakPoints is null.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant
You can’t perform that action at this time.