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

google.com | 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.
  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 | 1 year 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 | 9 months ago | 0nko
    java.lang.IllegalArgumentException: Invalid offset: -1. Valid range is [0, 86]
  5. 0

    GitHub comment 23#234644763

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

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