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

GitHub | Nef1k | 6 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

    StringIndexOutOfBoundsException

    GitHub | 6 months ago | Nef1k
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  2. 0

    GitHub comment 5#245050521

    GitHub | 6 months ago | Nef1k
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  3. 0

    GitHub comment 11#245183796

    GitHub | 6 months ago | Nef1k
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    GitHub comment 11#245183844

    GitHub | 6 months ago | Nef1k
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
  6. 0

    Another exception

    GitHub | 6 months ago | Nef1k
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
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.substring()
  2. Java RT
    String.substring
    1. java.lang.String.substring(String.java:1967)
    1 frame
  3. com.ns_team.commands_system
    CommandManager.executeCommandString
    1. com.ns_team.commands_system.Parser.ParamParse(Parser.java:38)
    2. com.ns_team.commands_system.Parser.parseCommand(Parser.java:14)
    3. com.ns_team.commands_system.CommandManager.executeCommandString(CommandManager.java:29)
    3 frames
  4. com.ns_team
    Main.main
    1. com.ns_team.Main.main(Main.java:17)
    1 frame
  5. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  6. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)
    1 frame