ReadMoreOption
ReadMoreOption copied to clipboard
StringIndexOutOfBound Exception
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)
https://github.com/devendroid/ReadMoreOption/pull/19 I hope this fix your error, I found out there is a validation in the java file before migrate to kotlin.