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

[PR] fixed issue#750 ArrayIndexOutOfBoundsException #816

Closed
processing-bot opened this issue Aug 19, 2024 · 0 comments
Closed

[PR] fixed issue#750 ArrayIndexOutOfBoundsException #816

processing-bot opened this issue Aug 19, 2024 · 0 comments

Comments

@processing-bot
Copy link
Collaborator

processing-bot commented Aug 19, 2024

Original PR by @SaumyaKarnwal at benfry/processing4#816

Issue link : #750 (comment)

Problem : It wasn't able to parse exponents leading to ArrayIndexOutOfBoundsException

Solution : handled that edge case. it will now be able to parse values such as 6.2e-4

Behavior after modification:
image

Diff

else if (isOnDecimal && (c < '0' || c > '9')) {

-- else if (isOnDecimal && (c < '0' || c > '9')) {
++ else if (isOnDecimal && (c < '0' || c > '9') && c!='e' && c!='-') {
@SableRaf SableRaf changed the title fixed issue#750 ArrayIndexOutOfBoundsException - [opened] [PR] fixed issue#750 ArrayIndexOutOfBoundsException Aug 19, 2024
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

No branches or pull requests

2 participants