Menu

#29 Runtime exception when opening new battle

1.1.4
closed
2
2012-10-10
2006-10-08
No

Reported by Luis Crespo:

When loading an existing battle, I get a runtime
exeception (sorry, I did not record the exception
dump and now I cannot replicate the bug until I run a
new version). As the battle does not get loaded, the
open battle command gets ignored. This will happen
until I close robocode and reopen it: after that, it
will support existing battles.

Discussion

  • Flemming N. Larsen

    Logged In: YES
    user_id=1249353

    Reproduced:

    Exception in thread "AWT-EventQueue-0"
    java.lang.NullPointerException
    at
    robocode.manager.BattleManager.loadBattleProperties
    (Unknown Source)
    at
    robocode.manager.WindowManager.showBattleOpenDialog
    (Unknown Source)
    at
    robocode.dialog.RobocodeMenuBar.battleOpenActionPerformed
    (Unknown Sou
    rce)
    at robocode.dialog.RobocodeMenuBar.access$300
    (Unknown Source)
    at
    robocode.dialog.RobocodeMenuBar$EventHandler.actionPerforme
    d(Unknown
    Source)
    at javax.swing.AbstractButton.fireActionPerformed
    (Unknown Source)
    at
    javax.swing.AbstractButton$Handler.actionPerformed(Unknown
    Source)
    at
    javax.swing.DefaultButtonModel.fireActionPerformed(Unknown
    Source)
    at javax.swing.DefaultButtonModel.setPressed
    (Unknown Source)
    at javax.swing.AbstractButton.doClick(Unknown
    Source)
    at javax.swing.plaf.basic.BasicMenuItemUI.doClick
    (Unknown Source)
    at
    javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseRelease
    d(Unknown
    Source)
    at java.awt.Component.processMouseEvent(Unknown
    Source)
    at javax.swing.JComponent.processMouseEvent
    (Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown
    Source)
    at java.awt.Container.dispatchEventImpl(Unknown
    Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at
    java.awt.LightweightDispatcher.retargetMouseEvent(Unknown
    Source)
    at java.awt.LightweightDispatcher.processMouseEvent
    (Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent
    (Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown
    Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown
    Source)
    at
    java.awt.EventDispatchThread.pumpOneEventForHierarchy
    (Unknown Source)

        at
    

    java.awt.EventDispatchThread.pumpEventsForHierarchy
    (Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown
    Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown
    Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

     
  • Flemming N. Larsen

    Logged In: YES
    user_id=1249353

    This bug has been fixed in the next release of Robocode

     

Log in to post a comment.

MongoDB Logo MongoDB