Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

  1. ,

    Thrown by the methods of the String class to indicate that an index is either negative, or greater than the size of the string itself. You are probably using the wrong index when accessing substring of the array.

Solutions on the web

via GitHub by Nef1k
, 1 year ago
String index out of range: -1
via staf by daniel_dao
, 1 year ago
String index out of range: -1
via staf by sameervk
, 1 year ago
via Stack Overflow by Monojeet Nayak
, 2 years ago
String index out of range: -1
via roller-user by Sean Pritchard, 2 years ago
java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring( at com.ns_team.commands_system.Parser.parseCommand( at com.ns_team.commands_system.CommandManager.executeCommandString( at com.ns_team.Main.main( at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke( at sun.reflect.DelegatingMethodAccessorImpl.invoke( at java.lang.reflect.Method.invoke( at com.intellij.rt.execution.application.AppMain.main(