java.lang.IndexOutOfBoundsException: Wrong offset: 151. Should be in range: [0, 150]

YouTrack | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    IDE freezes, apparently repeatedly failing to correctly parse Kotlin code correctly

    YouTrack | 9 months ago
    java.lang.IndexOutOfBoundsException: Wrong offset: 151. Should be in range: [0, 150]
  2. 0

    Too many Lint errors on Import?

    Google Groups | 3 years ago | Benjamin Cooley
    java.lang.IndexOutOfBoundsException: Wrong offset: 958. Should be in range: [0, 115]
  3. 0

    Exception while editing text.

    YouTrack | 9 years ago
    java.lang.IndexOutOfBoundsException: Wrong offset: 3489
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Wrong offset while generating line numbers

    YouTrack | 5 years ago
    org.jetbrains.jet.codegen.CompilationException: Wrong offset: 2920. Should be in range: [0, 2917]
  6. 0

    Database console: IOOBE at SegmentArray.findSegmentIndex()

    YouTrack | 3 years ago
    java.lang.IndexOutOfBoundsException: Wrong offset: 297. Should be in range: [0, 295]

  1. Eric 2 times, last 1 month ago
  2. poroszd 2 times, last 3 months ago
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.IndexOutOfBoundsException

    Wrong offset: 151. Should be in range: [0, 150]

    at com.intellij.openapi.editor.impl.LineSet.findLineIndex()
  2. IDEA
    DocumentImpl.getLineNumber
    1. com.intellij.openapi.editor.impl.LineSet.findLineIndex(LineSet.java:141)
    2. com.intellij.openapi.editor.impl.DocumentImpl.getLineNumber(DocumentImpl.java:919)
    2 frames
  3. org.jetbrains.kotlin
    KotlinFoldingBuilder.isOneLine
    1. org.jetbrains.kotlin.idea.KotlinFoldingBuilder.isOneLine(KotlinFoldingBuilder.kt:97)
    1 frame