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

Fix StringIndexOutOfBoundsException in DefaultProgressBarRenderer #58

Merged
merged 1 commit into from
Jan 24, 2020

Conversation

kristofarkas
Copy link
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
Copy link
Owner

ctongfei commented Jan 9, 2020

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