java.lang.StringIndexOutOfBoundsException: String index out of range: 2

GitHub | jleyba | 2 years 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

    StringIndexOutOfBoundsException on empty ordered list input.

    GitHub | 2 years ago | jleyba
    java.lang.StringIndexOutOfBoundsException: String index out of range: 2
  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

    Index-out-of-bound exception in java

    Stack Overflow | 3 years ago | Taha Rushain
    java.lang.StringIndexOutOfBoundsException: String index out of range: 2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Null Pointer Exception when opening class expression editor

    GitHub | 2 years ago | tudorache
    java.lang.StringIndexOutOfBoundsException: String index out of range: 2
  6. 0

    Installation problems

    GitHub | 6 months ago | DavidNemeskey
    java.lang.StringIndexOutOfBoundsException: String index out of range: 2
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

    String index out of range: 2

    at java.lang.String.charAt()
  2. Java RT
    String.charAt
    1. java.lang.String.charAt(String.java:658)
    1 frame
  3. org.commonmark.internal
    Substring.charAt
    1. org.commonmark.internal.util.Substring.charAt(Substring.java:32)
    1 frame
  4. Java RT
    Character.codePointAt
    1. java.lang.Character.codePointAt(Character.java:4668)
    1 frame
  5. org.commonmark.internal
    DocumentParser.parse
    1. org.commonmark.internal.util.Parsing.isLetter(Parsing.java:55)
    2. org.commonmark.internal.DocumentParser.incorporateLine(DocumentParser.java:194)
    3. org.commonmark.internal.DocumentParser.parse(DocumentParser.java:83)
    3 frames
  6. org.commonmark.parser
    Parser.parse
    1. org.commonmark.parser.Parser.parse(Parser.java:45)
    1 frame
  7. Unknown
    MarkdownTest.shouldWork
    1. MarkdownTest.shouldWork(MarkdownTest.java:32)
    1 frame