java.lang.StringIndexOutOfBoundsException: length=2042; regionStart=332; regionLength=-219

Stack Overflow | m n | 7 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    StringIndexOutOfBoundsException when try to set html data in to textview in android

    Stack Overflow | 7 months ago | m n
    java.lang.StringIndexOutOfBoundsException: length=2042; regionStart=332; regionLength=-219
  2. 0

    Invalid UPC_E leads to StringIndexOutOfBoundsException in ResultParser.parseResult

    GitHub | 3 years ago | blasd
    java.lang.StringIndexOutOfBoundsException: length=1; regionStart=1; regionLength=6
  3. 0

    Issue 30889 - android - TextView with ImageSpans crashing for arabic - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 2 years ago
    java.lang.StringIndexOutOfBoundsException: length=474; regionStart=204; regionLength=-13
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issue 30889 - android - TextView with ImageSpans crashing for arabic - Android Open Source Project - Issue Tracker - Google Project Hosting

    google.com | 9 months ago
    java.lang.StringIndexOutOfBoundsException: length=474; regionStart=204; regionLength=-13
  6. 0

    NumberFormatException on Preferences->Mylar->Bugzilla on Mac OS X

    Eclipse Bugzilla | 1 decade ago | eclipse
    java.lang.StringIndexOutOfBoundsException: String index out of range: 8

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.StringIndexOutOfBoundsException

      length=2042; regionStart=332; regionLength=-219

      at java.lang.String.startEndAndLength()
    2. Java RT
      String.getChars
      1. java.lang.String.startEndAndLength(String.java:593)
      2. java.lang.String.getChars(String.java:902)
      2 frames
    3. Android Platform
      FrameLayout.draw
      1. android.text.SpannableStringInternal.getChars(SpannableStringInternal.java:70)
      2. android.text.TextUtils.getChars(TextUtils.java:70)
      3. android.text.TextLine.set(TextLine.java:150)
      4. android.text.Layout.getLineExtent(Layout.java:941)
      5. android.text.Layout.draw(Layout.java:405)
      6. android.widget.TextView.onDraw(TextView.java:4977)
      7. android.view.View.draw(View.java:10880)
      8. android.view.View.buildDrawingCache(View.java:10597)
      9. android.view.ViewGroup.onAnimationStart(ViewGroup.java:2377)
      10. android.view.ViewGroup.drawChild(ViewGroup.java:2660)
      11. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
      12. android.view.View.draw(View.java:10883)
      13. android.view.ViewGroup.drawChild(ViewGroup.java:2899)
      14. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
      15. android.view.ViewGroup.drawChild(ViewGroup.java:2897)
      16. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
      17. android.view.ViewGroup.drawChild(ViewGroup.java:2897)
      18. android.view.ViewGroup.dispatchDraw(ViewGroup.java:2495)
      19. android.view.View.draw(View.java:10883)
      20. android.widget.FrameLayout.draw(FrameLayout.java:450)
      20 frames
    4. Android
      PhoneWindow$DecorView.draw
      1. com.android.internal.policy.impl.PhoneWindow$DecorView.draw(PhoneWindow.java:2106)
      1 frame
    5. Android Platform
      ActivityThread.main
      1. android.view.ViewRootImpl.draw(ViewRootImpl.java:2005)
      2. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1613)
      3. android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2418)
      4. android.os.Handler.dispatchMessage(Handler.java:99)
      5. android.os.Looper.loop(Looper.java:137)
      6. android.app.ActivityThread.main(ActivityThread.java:4340)
      6 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:511)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame