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

Crash report alpha-35: OOB in LinkFormatter.getSelectedUrlWithAnchor #265

Closed
maxme opened this issue Feb 19, 2017 · 1 comment
Closed

Crash report alpha-35: OOB in LinkFormatter.getSelectedUrlWithAnchor #265

maxme opened this issue Feb 19, 2017 · 1 comment
Assignees
Labels

Comments

@maxme
Copy link
Contributor

maxme commented Feb 19, 2017

Fatal Exception: java.lang.StringIndexOutOfBoundsException
       at android.text.SpannableStringBuilder.<init>(SpannableStringBuilder.java:60)
       at android.text.SpannableStringBuilder.subSequence(SpannableStringBuilder.java:1139)
       at org.wordpress.aztec.AztecText.getSelectedText(AztecText.kt:352)
       at org.wordpress.aztec.formatting.LinkFormatter.getSelectedUrlWithAnchor(LinkFormatter.kt:35)
       at org.wordpress.aztec.AztecText.showLinkDialog(AztecText.kt:831)
       at org.wordpress.aztec.AztecText.showLinkDialog$default(AztecText.kt:830)
       at org.wordpress.aztec.toolbar.AztecToolbar.onToolbarAction(AztecToolbar.kt:169)
       at org.wordpress.aztec.toolbar.AztecToolbar.access$onToolbarAction(AztecToolbar.kt:18)
       at org.wordpress.aztec.toolbar.AztecToolbar$initView$1.onClick(AztecToolbar.kt:96)
       at android.view.View.performClick(View.java:5637)
       at android.widget.CompoundButton.performClick(CompoundButton.java:122)
       at android.view.View$PerformClick.run(View.java:22429)
       at android.os.Handler.handleCallback(Handler.java:751)
       at android.os.Handler.dispatchMessage(Handler.java:95)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6119)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

Pixel C - Android 7.1.1

@0nko 0nko added the bug label Feb 20, 2017
@khaykov khaykov self-assigned this Feb 21, 2017
khaykov added a commit that referenced this issue Feb 22, 2017
@hypest
Copy link
Contributor

hypest commented Feb 24, 2017

Fixed with #272 . Since the PR author wasn't able to reproduce this issue, feel free to reopen if not fixed. Thanks!

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

4 participants