Ticket #295 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

Unloading shipc crashes multibot

Reported by: Maverick Assigned to: Ayano
Priority: normal Component: Bots - Multibot
Version: Latest version from repository Severity: major
Keywords: Cc:

Description

Might be related to #294:

When you unload the module shipc, it crashes the bot.

   MMaverick> !load shipc
    RoboBot1> Loaded utility: shipc
   MMaverick> !help
    RoboBot1> Commands: !go <arena>, !come, !lock, !unlock, !unlockwith, !load, !unload, !unloadall, !listgames, !listutils, !loaded, !follow, !gtfo, !die, !help !<cmd>, !help <utility>, !modhelp, !mybot, !override, !free
    RoboBot1> Use !help !<cmd> for command descriptions and shortcuts.  Ex: !help !go
   MMaverick> !load poker
    RoboBot1> Loaded module: Poker
   MMaverick> !unload poker
    RoboBot1> Module can not be unloaded at this time.  Please hang up and try your call again later.
   MMaverick> !unload shipc
8:TWHub> RoboBot1(multibot) has disconnected.
java.lang.NullPointerException
        at twcore.core.BotAction.sendPrivateMessage(Unknown Source)
        at twcore.core.BotAction.sendSmartPrivateMessage(Unknown Source)
        at twcore.core.BotAction.sendSmartPrivateMessage(Unknown Source)
        at twcore.bots.multibot.multibot.handleCommands(multibot.java:271)
        at twcore.bots.multibot.multibot.handleEvent(multibot.java:138)
        at twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.Session.run(Unknown Source)
15 Aug 2008 13:41:56   RoboBot1 (multibot) is disconnecting: unhandled exception
15 Aug 2008 13:42:25   RoboBot1 (multibot) disconnected gracefully.
java.lang.NullPointerException
        at twcore.core.BotAction.sendPrivateMessage(Unknown Source)
        at twcore.core.BotAction.sendSmartPrivateMessage(Unknown Source)
        at twcore.core.BotAction.sendSmartPrivateMessage(Unknown Source)
        at twcore.bots.multibot.multibot.handleCommands(multibot.java:271)
        at twcore.bots.multibot.multibot.handleEvent(multibot.java:138)
        at twcore.core.net.GamePacketInterpreter.handleChatMessage(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateNormalPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.net.ReliablePacketHandler.handleReliableMessage(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateSpecialPacket(Unknown Source)
        at twcore.core.net.GamePacketInterpreter.translateGamePacket(Unknown Source)
        at twcore.core.Session.run(Unknown Source)

Attachments

Change History

08/15/08 17:46:36 changed by Ayano

  • owner changed from nobody to Ayano.
  • status changed from new to assigned.

Might be the cancel command, I'll fix this in a jiffy.

08/15/08 17:54:21 changed by Ayano

  • status changed from assigned to closed.
  • resolution set to fixed.

Resolved r:2779


Add/Change #295 (Unloading shipc crashes multibot)




Change Properties
Action