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

StringOutOfBoundsIndexException issue, and ParseException suggestion #65

Open
DalekCraft2 opened this issue Oct 18, 2021 · 0 comments
Open

Comments

@DalekCraft2
Copy link

DalekCraft2 commented Oct 18, 2021

The SNBTUtil.fromString() method throws a StringIndexOutOfBoundsException if an empty string is passed to it, so it would be convenient if that was fixed so one would not have to add catch statements for it whenever they invoke the method.

For the ParseException class, I think that it should have a method for getting the index at which the error was found. In my case, I want it so I can create a (java.text.)ParseException from it for a JFormattedTextField's formatter.

Edit: Alternatively, you could simply use the java.text.ParseException class instead of creating your own.

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