java.lang.ArrayIndexOutOfBoundsException: -1

freecol | redarts | 9 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Freezes on Inca AI turn

    freecol | 9 years ago | redarts
    java.lang.ArrayIndexOutOfBoundsException: -1

    Root Cause Analysis

    1. java.lang.ArrayIndexOutOfBoundsException

      -1

      at net.sf.freecol.common.model.GoodsContainer.getGoodsCount()
    2. net.sf.freecol
      AIInGameInputHandler$1.run
      1. net.sf.freecol.common.model.GoodsContainer.getGoodsCount(GoodsContainer.java:229)
      2. net.sf.freecol.common.model.IndianSettlement.newTurn(IndianSettlement.java:1035)
      3. net.sf.freecol.common.model.Player.newTurn(Player.java:2357)
      4. net.sf.freecol.common.model.Game.newTurn(Game.java:783)
      5. net.sf.freecol.server.control.InGameController.nextPlayer(InGameController.java:131)
      6. net.sf.freecol.server.control.InGameController.endTurn(InGameController.java:108)
      7. net.sf.freecol.server.control.InGameInputHandler.endTurn(InGameInputHandler.java:2345)
      8. net.sf.freecol.server.control.InGameInputHandler.access$3400(InGameInputHandler.java:70)
      9. net.sf.freecol.server.control.InGameInputHandler$35.handle(InGameInputHandler.java:288)
      10. net.sf.freecol.server.control.InputHandler$CurrentPlayerNetworkRequestHandler.handle(InputHandler.java:191)
      11. net.sf.freecol.server.control.InputHandler.handle(InputHandler.java:101)
      12. net.sf.freecol.server.networking.DummyConnection.send(DummyConnection.java:83)
      13. net.sf.freecol.server.ai.AIInGameInputHandler$1.run(AIInGameInputHandler.java:206)
      13 frames