Skip to content

Fix StringIndexOutOfBoundsException in DefaultProgressBarRenderer - #58

Merged
ctongfei merged 1 commit into
ctongfei:masterfrom
kristofarkas:patch-1
Jan 24, 2020
Merged

ctongfei merged 1 commit into
ctongfei:masterfrom
kristofarkas:patch-1

Conversation

@kristofarkas

Copy link
Copy Markdown
Contributor

When maxSuffixLength is calculated the value could have been negative. To avoid this we wrap it in a max function, with lower bound of 0.

When `maxSuffixLength` is calculated the value could have been negative. To avoid this we wrap it in a max function, with lower bound of 0.
@ctongfei

ctongfei commented Jan 9, 2020

Copy link
Copy Markdown
Owner

Hey thanks Kristof for fixing the bug! Could you add a test case in the test directory (/src/test/java) that documents the erroneous behavior?

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants