java.lang.StringIndexOutOfBoundsException

GitHub | maxme | 8 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.

Root Cause Analysis

  1. java.lang.StringIndexOutOfBoundsException

    No message provided

    at android.text.SpannableStringBuilder.<init>()
  2. Android Platform
    SpannableStringBuilder.subSequence
    1. android.text.SpannableStringBuilder.<init>(SpannableStringBuilder.java)
    2. android.text.SpannableStringBuilder.subSequence(SpannableStringBuilder.java:907)
    2 frames
  3. org.wordpress.android
    HtmlStyleTextWatcher.afterTextChanged
    1. org.wordpress.android.editor.HtmlStyleUtils.applySpansByRegex(HtmlStyleUtils.java:107)
    2. org.wordpress.android.editor.HtmlStyleUtils.styleHtmlForDisplay(HtmlStyleUtils.java:87)
    3. org.wordpress.android.editor.HtmlStyleTextWatcher.updateSpans(HtmlStyleTextWatcher.java:198)
    4. org.wordpress.android.editor.HtmlStyleTextWatcher.afterTextChanged(HtmlStyleTextWatcher.java:92)
    4 frames
  4. Android Platform
    ViewGroup.dispatchKeyEvent
    1. android.widget.TextView.sendAfterTextChanged(TextView.java:8928)
    2. android.widget.TextView$ChangeWatcher.afterTextChanged(TextView.java:11255)
    3. android.text.SpannableStringBuilder.sendAfterTextChanged(SpannableStringBuilder.java:972)
    4. android.text.SpannableStringBuilder.replace(SpannableStringBuilder.java:499)
    5. android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:212)
    6. android.text.SpannableStringBuilder.delete(SpannableStringBuilder.java:30)
    7. android.text.method.BaseKeyListener.deleteSelection(BaseKeyListener.java:109)
    8. android.text.method.BaseKeyListener.backspaceOrForwardDelete(BaseKeyListener.java:73)
    9. android.text.method.BaseKeyListener.backspace(BaseKeyListener.java:49)
    10. android.text.method.BaseKeyListener.onKeyDown(BaseKeyListener.java:155)
    11. android.text.method.QwertyKeyListener.onKeyDown(QwertyKeyListener.java:357)
    12. android.text.method.TextKeyListener.onKeyDown(TextKeyListener.java:136)
    13. android.widget.TextView.doKeyDown(TextView.java:6902)
    14. android.widget.TextView.onKeyDown(TextView.java:6679)
    15. android.view.KeyEvent.dispatch(KeyEvent.java:3173)
    16. android.view.View.dispatchKeyEvent(View.java:7903)
    17. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1470)
    18. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1470)
    19. android.widget.ScrollView.dispatchKeyEvent(ScrollView.java:508)
    20. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1470)
    21. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1470)
    21 frames
  5. Android Support v4
    ViewPager.dispatchKeyEvent
    1. android.support.v4.view.ViewPager.dispatchKeyEvent(ViewPager.java:2652)
    1 frame
  6. Android Platform
    ViewGroup.dispatchKeyEvent
    1. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1470)
    2. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1470)
    3. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1470)
    4. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1470)
    5. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1470)
    6. android.view.ViewGroup.dispatchKeyEvent(ViewGroup.java:1470)
    6 frames
  7. Android
    PhoneWindow.superDispatchKeyEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.superDispatchKeyEvent(PhoneWindow.java:2262)
    2. com.android.internal.policy.impl.PhoneWindow.superDispatchKeyEvent(PhoneWindow.java:1612)
    2 frames
  8. Android Platform
    Activity.dispatchKeyEvent
    1. android.app.Activity.dispatchKeyEvent(Activity.java:2524)
    1 frame
  9. Android v7
    AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent
    1. android.support.v7.app.AppCompatActivity.dispatchKeyEvent(AppCompatActivity.java:534)
    2. android.support.v7.view.WindowCallbackWrapper.dispatchKeyEvent(WindowCallbackWrapper.java:50)
    3. android.support.v7.app.AppCompatDelegateImplBase$AppCompatWindowCallbackBase.dispatchKeyEvent(AppCompatDelegateImplBase.java:241)
    3 frames
  10. Android
    PhoneWindow$DecorView.dispatchKeyEvent
    1. com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:2181)
    1 frame
  11. Android Platform
    ActivityThread.main
    1. android.view.ViewRootImpl$ViewPostImeInputStage.processKeyEvent(ViewRootImpl.java:4545)
    2. android.view.ViewRootImpl$ViewPostImeInputStage.onProcess(ViewRootImpl.java:4512)
    3. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4077)
    4. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4131)
    5. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4100)
    6. android.view.ViewRootImpl$AsyncInputStage.forward(ViewRootImpl.java:4211)
    7. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4108)
    8. android.view.ViewRootImpl$AsyncInputStage.apply(ViewRootImpl.java:4268)
    9. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4077)
    10. android.view.ViewRootImpl$InputStage.onDeliverToNext(ViewRootImpl.java:4131)
    11. android.view.ViewRootImpl$InputStage.forward(ViewRootImpl.java:4100)
    12. android.view.ViewRootImpl$InputStage.apply(ViewRootImpl.java:4108)
    13. android.view.ViewRootImpl$InputStage.deliver(ViewRootImpl.java:4077)
    14. android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:6433)
    15. android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:6350)
    16. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6321)
    17. android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:6286)
    18. android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3644)
    19. android.os.Handler.dispatchMessage(Handler.java:102)
    20. android.os.Looper.loop(Looper.java:136)
    21. android.app.ActivityThread.main(ActivityThread.java:5476)
    21 frames
  12. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invokeNative(Method.java)
    2. java.lang.reflect.Method.invoke(Method.java:515)
    2 frames
  13. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
    2 frames
  14. Android Platform
    NativeStart.main
    1. dalvik.system.NativeStart.main(NativeStart.java)
    1 frame