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

Gives error in List #50

Closed
shubhsherl opened this issue Jun 2, 2018 · 1 comment
Closed

Gives error in List #50

shubhsherl opened this issue Jun 2, 2018 · 1 comment
Labels

Comments

@shubhsherl
Copy link

When pressing Enter in Ordered/Unordered List with no text, it should delete List. But its giving
java.lang.StringIndexOutOfBoundsException

This happens when I do this at the end of my Editor.

@shubhsherl
Copy link
Author

shubhsherl commented Jun 2, 2018

The Problem is that in onTextChanged() function the value of start is greater than the length of CharSequence.
This is mainly because of deleteUnorderedListByEnter() and deleteOrderedListByEnter() is calling both beforeTextChanged() and onTextChanged() with same Charsequence.

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