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

isSpaceCharacterAtIndex #37

Open
Schagalaah opened this issue Oct 11, 2019 · 0 comments
Open

isSpaceCharacterAtIndex #37

Schagalaah opened this issue Oct 11, 2019 · 0 comments

Comments

@Schagalaah
Copy link

return this.line.charAt(index) != SPACE_CHARACTER;

it can happen that index is larger as char array length.

try..catch or test against line.length

I lazy fixed with try... catch and result is ok for me. Better to find out why index is larger as line.length.

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

1 participant