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

java.lang.IllegalArgumentException: Invalid end index. #21

Open
h2hjastermereel opened this issue Nov 1, 2019 · 1 comment
Open

java.lang.IllegalArgumentException: Invalid end index. #21

h2hjastermereel opened this issue Nov 1, 2019 · 1 comment
Assignees
Labels

Comments

@h2hjastermereel
Copy link

h2hjastermereel commented Nov 1, 2019

Thrown when you attempt to format a span beyond the length of the text property value.

richTextView.setText("This is too short"); richTextView.formatSpan(0, 11, FormatType.SUBSCRIPT);

This should be caught and handled (truncated to the length of the string). If I get time I will create a branch, fix it and submit a PR.

@AdamMc331 AdamMc331 self-assigned this Nov 1, 2019
@AdamMc331 AdamMc331 added the bug label Nov 1, 2019
@AdamMc331
Copy link
Contributor

@h2hjastermereel Thanks for submitting this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants