java.lang.IndexOutOfBoundsException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Thrown to indicate that an index of some sort (such as to an array, to a string, or to a vector) is out of range. Applications can subclass this class to indicate similar exceptions.


rafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 188#194320819
    via GitHub by czyzby
    ,
  • IOOBE while adding person
    via GitHub by damithc
    ,
  • markdown parser crashed
    via GitHub by griffin-stewie
    ,
    • java.lang.IndexOutOfBoundsException: Index: 0, Size: -1 at java.util.ArrayList.rangeCheck(ArrayList.java:653) at java.util.ArrayList.get(ArrayList.java:429) at Serializer_2.write1(Unknown Source) at Serializer_2.write(Unknown Source) at com.alibaba.fastjson.serializer.JSONSerializer.write(JSONSerializer.java:361) at com.alibaba.fastjson.JSON.toJSONString(JSON.java:393) at com.game.player.Manager.PlayerManager.makeRoleBeanByPlayer(PlayerManager.java:358) at com.game.player.Manager.PlayerManager.timingSavePlayer(PlayerManager.java:1060) at com.game.Server.Timer.ServerHeartTimer.action(ServerHeartTimer.java:40) at game.core.net.thread.ServerThread.run(ServerThread.java:97)

    Users with the same issue

    Pilleo
    9 times, last one,
    aidoan
    2 times, last one,
    nasimk
    2 times, last one,
    Axelo
    7 times, last one,
    jokester
    1 times, last one,
    235 more bugmates