Skip to content

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

Open
Athameon wants to merge 2 commits into
PhilJay:masterfrom
Athameon:patch-1
Open

Athameon wants to merge 2 commits into
PhilJay:masterfrom
Athameon:patch-1

Conversation

@Athameon

@Athameon Athameon commented Jul 10, 2020

Copy link
Copy Markdown

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:

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant