Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

java.lang.IndexOutOfBoundsException #144

Open
surabhimindinfo opened this issue Aug 2, 2018 · 1 comment
Open

java.lang.IndexOutOfBoundsException #144

surabhimindinfo opened this issue Aug 2, 2018 · 1 comment

Comments

@surabhimindinfo
Copy link

I am trying to add html in HTMLTextView but getting followoing error :

Getting error on this line
descTV.setHtml(vacancies_desc,
new HtmlResImageGetter(descTV));

ERROR
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.arihanteducationgroup.online.indore/com.arihanteducationgroup.online.indore.activities.DetailVacancy}: java.lang.IndexOutOfBoundsException: setSpan (423 ... 454) ends beyond length 423
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2455)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2515)
at android.app.ActivityThread.access$1000(ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1379)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:157)
at android.app.ActivityThread.main(ActivityThread.java:5571)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:745)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:635)

@MedetZhakupov
Copy link

I am getting the same thing. Any kind of help would be good

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

No branches or pull requests

2 participants