java.lang.StringIndexOutOfBoundsException: length=4; regionStart=0; regionLength=-1

Stack Overflow | Robert | 4 months ago
  1. 0

    Do not concatenate text displayed with setText issue + App crashing when other language than default lang is used

    Stack Overflow | 4 months ago | Robert
    java.lang.StringIndexOutOfBoundsException: length=4; regionStart=0; regionLength=-1
  2. 0

    OsmAnd 2.0.x sometimes fails to render offline maps

    GitHub | 2 years ago | aelmahmoudy
    java.lang.StringIndexOutOfBoundsException: length=4; regionStart=0; regionLength=-1
  3. 0

    OsmAnd~ 2.0.3 (205) cannot render offline maps (#212) | Issues | F-Droid / fdroiddata | GitLab

    gitlab.com | 1 year ago
    java.lang.StringIndexOutOfBoundsException: length=4; regionStart=0; regionLength=-1
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 282#135746332

    GitHub | 1 year ago | an-arhos
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.anonce/com.example.anonce.oglasi}: java.lang.StringIndexOutOfBoundsException: length=4; regionStart=0; regionLength=-1
  6. 0

    Index out of bound exception in Android app

    Stack Overflow | 2 years ago | Sanjay AD
    java.lang.StringIndexOutOfBoundsException: length=802; regionStart=306; regionLength=-277

  1. richard77 2 times, last 4 days ago
  2. kjhdofjosvs 2 times, last 1 week ago
  3. archenroot 17 times, last 2 weeks ago
  4. Alexandru Popa 2 times, last 4 weeks ago
  5. poroszd 3 times, last 1 month ago
18 more registered users
58 unregistered visitors
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=4; regionStart=0; regionLength=-1

    at java.lang.String.startEndAndLength()
  2. Java RT
    String.substring
    1. java.lang.String.startEndAndLength(String.java:504)
    2. java.lang.String.substring(String.java:1333)
    2 frames
  3. com.example.android
    MainActivity$1.onClick
    1. com.example.android.test_app.MainActivity.displayTimeReal(MainActivity.java:91)
    2. com.example.android.test_app.MainActivity.access$200(MainActivity.java:12)
    3. com.example.android.test_app.MainActivity$1.onClick(MainActivity.java:31)
    3 frames
  4. Android Platform
    ActivityThread.main
    1. android.view.View.performClick(View.java)
    2. android.view.View$PerformClick.run(View.java)
    3. android.os.Handler.handleCallback(Handler.java)
    4. android.os.Handler.dispatchMessage(Handler.java)
    5. android.os.Looper.loop(Looper.java)
    6. android.app.ActivityThread.main(ActivityThread.java)
    6 frames
  5. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    2. java.lang.reflect.Method.invoke(Method.java:372)
    2 frames
  6. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java)
    2 frames