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

add try catch when parsing image tag #67

Open
ray1422 opened this issue Mar 1, 2020 · 0 comments
Open

add try catch when parsing image tag #67

ray1422 opened this issue Mar 1, 2020 · 0 comments

Comments

@ray1422
Copy link

ray1422 commented Mar 1, 2020

![]() will make the app crash.

E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
    Process: com.abbysyyu.diary, PID: 5017
    java.lang.IndexOutOfBoundsException: replace (5 ... 15) ends beyond length 10
        at android.text.SpannableStringBuilder.checkRange(SpannableStringBuilder.java:1090)
        at android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:498)
        at android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:225)
...
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