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

If inline comments are allowed and in actual line have no comment, an exception occurs #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JaBuoniak
Copy link

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 2147483647
at java.lang.String.substring(String.java:1963)
at ca.szc.configparser.Ini.read(Ini.java:456)
at ca.szc.configparser.Ini.read(Ini.java:663)
at ca.szc.configparser.Ini.read(Ini.java:641)

… exception occurs:

Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 2147483647
	at java.lang.String.substring(String.java:1963)
	at ca.szc.configparser.Ini.read(Ini.java:456)
	at ca.szc.configparser.Ini.read(Ini.java:663)
	at ca.szc.configparser.Ini.read(Ini.java:641)
@ASzc
Copy link
Owner

ASzc commented Oct 28, 2020

Thanks for the PR. Seems like this fixes #2. I will review, merge, and release a new version soon.

@ASzc ASzc self-assigned this Oct 28, 2020
@ASzc ASzc linked an issue Oct 28, 2020 that may be closed by this pull request
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.

Set InlineCommentPrefixes always causes IndexOutOfBoundException
2 participants