java.lang.StringIndexOutOfBoundsException: length=5; index=5

GitHub | lemonboston | 5 months ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rafael . Or join the community to write better ones.
  1. 0

    GitHub comment 286#253526274

    GitHub | 5 months ago | lemonboston
    java.lang.StringIndexOutOfBoundsException: length=5; index=5
  2. 0
    samebug tip
    Thrown by String methods to indicate that an index is either negative or greater than the size of the string. For some methods such as the charAt method, this exception also is thrown when the index is equal to the size of the string.
  3. 0

    Android is crashing in certain situation

    Stack Overflow | 1 year ago | Unlucky
    java.lang.StringIndexOutOfBoundsException: length=3; index=3
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    crash with MaskedEditText

    GitHub | 11 months ago | Valodim
    java.lang.StringIndexOutOfBoundsException: length=29; index=72
  6. 0

    OTR Refresh causes fatal crash

    GitHub | 9 months ago | awilliamson
    java.lang.StringIndexOutOfBoundsException: length=0; index=0

  1. tyson925 1 times, last 1 month ago
  2. Torasque 1 times, last 2 months ago
  3. Hronom 32257 times, last 2 months ago
  4. filpgame 6 times, last 2 months ago
  5. harshg 2 times, last 5 months ago
9 more registered users
18 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=5; index=5

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(Native Method)
    1 frame
  3. org.dmfs.tasks
    EditTaskFragment.onOptionsItemSelected
    1. org.dmfs.tasks.model.adapters.DescriptionStringFieldAdapter.extractDescription(DescriptionStringFieldAdapter.java:114)
    2. org.dmfs.tasks.model.adapters.DescriptionStringFieldAdapter.get(DescriptionStringFieldAdapter.java:62)
    3. org.dmfs.tasks.widget.TextFieldEditor.onContentChanged(TextFieldEditor.java:134)
    4. org.dmfs.tasks.model.ContentSet.notifyUpdateListeners(ContentSet.java:601)
    5. org.dmfs.tasks.model.ContentSet.put(ContentSet.java:438)
    6. org.dmfs.tasks.model.adapters.StringFieldAdapter.set(StringFieldAdapter.java:112)
    7. org.dmfs.tasks.model.adapters.DescriptionStringFieldAdapter.set(DescriptionStringFieldAdapter.java:88)
    8. org.dmfs.tasks.widget.TextFieldEditor.updateValues(TextFieldEditor.java:123)
    9. org.dmfs.tasks.widget.BaseTaskView.updateValues(BaseTaskView.java:113)
    10. org.dmfs.tasks.widget.BaseTaskView.updateValues(BaseTaskView.java:104)
    11. org.dmfs.tasks.EditTaskFragment.saveAndExit(EditTaskFragment.java:726)
    12. org.dmfs.tasks.EditTaskFragment.onOptionsItemSelected(EditTaskFragment.java:520)
    12 frames
  4. Android Support v4
    FragmentActivity.onMenuItemSelected
    1. android.support.v4.app.Fragment.performOptionsItemSelected(Fragment.java:2070)
    2. android.support.v4.app.FragmentManagerImpl.dispatchOptionsItemSelected(FragmentManager.java:2159)
    3. android.support.v4.app.FragmentController.dispatchOptionsItemSelected(FragmentController.java:295)
    4. android.support.v4.app.FragmentActivity.onMenuItemSelected(FragmentActivity.java:367)
    4 frames
  5. Android v7
    AppCompatDelegateImplV7.onMenuItemSelected
    1. android.support.v7.app.AppCompatActivity.onMenuItemSelected(AppCompatActivity.java:147)
    2. android.support.v7.view.WindowCallbackWrapper.onMenuItemSelected(WindowCallbackWrapper.java:100)
    3. android.support.v7.app.AppCompatDelegateImplV7.onMenuItemSelected(AppCompatDelegateImplV7.java:620)
    3 frames