java.lang.IllegalArgumentException: Invalid offset: -1. Valid range is [0, 232]

google.com | 4 months ago
  1. 0

    IllegalArgumentException while selecting text in Android TextView

    Stack Overflow | 1 year ago | mariotaku
    java.lang.IllegalArgumentException: Invalid offset: -1. Valid range is [0, 10562]
  2. 0

    GitHub comment 5502#192602967

    GitHub | 9 months ago | Bananeweizen
    java.lang.IllegalArgumentException: Invalid offset: -1. Valid range is [0, 730]
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Crash when clicking outside a selected quote

    GitHub | 4 months ago | 0nko
    java.lang.IllegalArgumentException: Invalid offset: -1. Valid range is [0, 86]
  5. 0

    GitHub comment 23#234644763

    GitHub | 5 months ago | theck13
    java.lang.IllegalArgumentException: Invalid offset: -1. Valid range is [0, 82]

  1. 0x60 2 times, last 2 months ago
  2. mukky 4 times, last 4 months ago
  3. jk 1 times, last 5 months ago
  4. brunosatriani 9 times, last 5 months ago
  5. Riyaz 2 times, last 6 months ago
4 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.IllegalArgumentException

    Invalid offset: -1. Valid range is [0, 232]

    at android.text.method.WordIterator.checkOffsetIsValid()
  2. Android Platform
    ActivityThread.main
    1. android.text.method.WordIterator.checkOffsetIsValid(WordIterator.java:380)
    2. android.text.method.WordIterator.isBoundary(WordIterator.java:101)
    3. android.widget.Editor$SelectionStartHandleView.positionAtCursorOffset(Editor.java:4260)
    4. android.widget.Editor$HandleView.updatePosition(Editor.java:3708)
    5. android.widget.Editor$PositionListener.onPreDraw(Editor.java:2507)
    6. android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:944)
    7. android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2055)
    8. android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
    9. android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
    10. android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
    11. android.view.Choreographer.doCallbacks(Choreographer.java:670)
    12. android.view.Choreographer.doFrame(Choreographer.java:606)
    13. android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
    14. android.os.Handler.handleCallback(Handler.java:739)
    15. android.os.Handler.dispatchMessage(Handler.java:95)
    16. android.os.Looper.loop(Looper.java:148)
    17. android.app.ActivityThread.main(ActivityThread.java:5417)
    17 frames
  3. Java RT
    Method.invoke
    1. java.lang.reflect.Method.invoke(Native Method)
    1 frame
  4. Android
    ZygoteInit.main
    1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
    2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
    2 frames