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

IndexOutOfBoundsException after pressing link in the context menu #100

Open
stefan-niedermann opened this issue Apr 11, 2022 · 0 comments
Open
Labels
bug Something isn't working feature: markdown

Comments

@stefan-niedermann
Copy link
Owner

stefan-niedermann commented Apr 11, 2022

nextcloud-commons:1.6.2

Happened after pressing Link in the context menu:

App Version: 3.4.19
App Version Code: 3004019
App Flavor: fdroid

Files App Version Code: 30190190

---

OS Version: 4.9.306-perf-g60bc22821300(10041563)
OS API Level: 30
Device: beryllium
Manufacturer: Xiaomi
Model (and Product): POCO F1 (beryllium)

---

java.lang.IndexOutOfBoundsException: charAt: 72 >= length 72
	at android.text.SpannableStringBuilder.charAt(SpannableStringBuilder.java:124)
	at it.niedermann.android.markdown.MarkdownUtil.insertLink(MarkdownUtil.java:413)
	at it.niedermann.android.markdown.markwon.format.ContextBasedFormattingCallback.onActionItemClicked(ContextBasedFormattingCallback.java:67)
	at android.widget.Editor$TextActionModeCallback.onActionItemClicked(Editor.java:4357)
	at com.android.internal.policy.DecorView$ActionModeCallback2Wrapper.onActionItemClicked(DecorView.java:2660)
	at com.android.internal.view.FloatingActionMode$3.onMenuItemSelected(FloatingActionMode.java:97)
	at com.android.internal.view.menu.MenuBuilder.dispatchMenuItemSelected(MenuBuilder.java:787)
	at com.android.internal.view.menu.MenuItemImpl.invoke(MenuItemImpl.java:151)
	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:934)
	at com.android.internal.view.menu.MenuBuilder.performItemAction(MenuBuilder.java:924)
	at com.android.internal.view.FloatingActionMode.lambda$setFloatingToolbar$0$FloatingActionMode(FloatingActionMode.java:122)
	at com.android.internal.view.-$$Lambda$FloatingActionMode$LU5MpPuKYDtwlFAuYhXYfzgLNLE.onMenuItemClick(Unknown Source:2)
	at com.android.internal.widget.FloatingToolbar$FloatingToolbarPopup$2.onClick(FloatingToolbar.java:442)
	at android.view.View.performClick(View.java:7448)
	at android.view.View.performClickInternal(View.java:7425)
	at android.view.View.access$3600(View.java:810)
	at android.view.View$PerformClick.run(View.java:28305)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7664)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

@stefan-niedermann stefan-niedermann changed the title IndexOutOfBoundsException IndexOutOfBoundsException after pressing link in the context menu Apr 15, 2022
@stefan-niedermann stefan-niedermann added bug Something isn't working feature: markdown labels Apr 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working feature: markdown
Projects
None yet
Development

No branches or pull requests

1 participant