devendroid / ReadMoreOption

Convert your TextView in ExpandableTextView with added options ReadMore/ReadLess.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

StringIndexOutOfBound Exception

HaXxanParhar opened this issue · comments

I'm using the TextViewOptions in RecyclerView. Following is the crash that I'm facing:

E/AndroidRuntime: FATAL EXCEPTION: main Process: com.haxxan.xzit, PID: 15726 java.lang.StringIndexOutOfBoundsException: length=16; index=108 at java.lang.String.substring(String.java:2060) at com.devs.readmoreoption.ReadMoreOption$1.run(ReadMoreOption.java:97) at android.os.Handler.handleCallback(Handler.java:888) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:213) at android.app.ActivityThread.main(ActivityThread.java:8178) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:513) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1101)

#19 I hope this fix your error, I found out there is a validation in the java file before migrate to kotlin.

Captura de Pantalla 2023-01-13 a la(s) 11 55 18