#315 Index out of range when repodding

closed-fixed
nobody
Server (93)
5
2011-09-19
2011-09-13
Machiavelli
No

Attempting to repod creates and index out of range error. Appears very similar to the error in previous bug for repairing rear armor.

[20:19] [java.lang.ArrayIndexOutOfBoundsException: 13]
[20:19] megamek.common.Entity.getArmorType(Entity.java:7281)
[20:19] common.util.UnitUtils.getCritName(UnitUtils.java:2655)
[20:19] common.util.UnitComponents.canRepodUnit(UnitComponents.java:216)
[20:19] server.campaign.commands.RepodCommand.createOmni(RepodCommand.java:394)
[20:19] server.campaign.commands.RepodCommand.process(RepodCommand.java:347)
[20:19] server.campaign.CampaignMain.fromUser(CampaignMain.java:758)
[20:19] server.MWServ.clientRecieve(MWServ.java:659)
[20:19] server.ServerWrapper.processCommand(ServerWrapper.java:63)
[20:19] server.MWChatServer.commands.Command.process(Command.java:37)
[20:19] server.MWChatServer.CommandProcessorRemote.process(CommandProcessorRemote.java:159)
[20:19] server.MWChatServer.MWChatClient.incomingMessage(MWChatClient.java:192)
[20:19] server.MWChatServer.ReaderThread.normalRun(ReaderThread.java:71)
[20:19] server.MWChatServer.ReaderThread.run(ReaderThread.java:97)
[20:19] java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
[20:19] java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
[20:19] java.lang.Thread.run(Unknown Source)

Discussion

  • Spork
    Spork
    2011-09-19

    Resolved in current server

     
  • Spork
    Spork
    2011-09-19

    Fixed in next release

     
  • Spork
    Spork
    2011-09-19

    • status: open --> closed-fixed