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

Stack Overflow | Robert | 6 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0

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

    Stack Overflow | 6 months ago | Robert
    java.lang.StringIndexOutOfBoundsException: length=4; regionStart=0; regionLength=-1
  2. 0
    samebug tip
    You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"
    via GitHub by Omertron
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

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

    gitlab.com | 2 years ago
    java.lang.StringIndexOutOfBoundsException: length=4; regionStart=0; regionLength=-1
  6. 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
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