java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Stack Overflow | serendipity | 3 days ago
tip
Do you find the tips below useful? Click on the to mark them and say thanks to rp . Or join the community to write better ones.
  1. 0

    Parsing multi line sentences from a file using regex

    Stack Overflow | 3 days ago | serendipity
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
  2. 0
    samebug tip
    You need to make sure that capitalisation of the case for the plugin in the properties file is exactly: "AllocinePlugin" and not "allocineplugin"
    via GitHub by Omertron
  3. 0

    Substring in Java - length up to a value

    Stack Overflow | 4 years ago | user1756421
    java.lang.StringIndexOutOfBoundsException: String index out of range: 6
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    who can get the simplest code?

    Coderanch | 1 decade ago | Jim Yingst
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  6. 0

    what is wrong with this code?

    Oracle Community | 1 decade ago | 807595
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1

  1. filpgame 2 times, last 2 weeks ago
  2. gamebusterz 1 times, last 3 weeks ago
  3. jokester 3 times, last 1 month ago
  4. richard77 2 times, last 2 months ago
  5. MoYapro 1 times, last 2 months ago
21 more registered users
58 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.StringIndexOutOfBoundsException

    String index out of range: -1

    at java.lang.String.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(Unknown Source)
    1 frame
  3. com.gyan.siapp
    test.main
    1. com.gyan.siapp.coref.resolve.test.main(test.java:46)
    1 frame