Hi Pieter,
definately a bug. I have a workaround already but would lke to check
with the original programmer if i miss any sideeffects.
Regards,
Martin
Am 28.08.14 um 18:25 schrieb Pieter Lust:
> I'd like to report a small problem I encountered with Rails (which is
> an awesome program!) in a game of 1856.
>
> It's near the end of the game.
> Hex I12 hasn't been upgraded yet, but CGR has a token there. The token
> was put there by the CA, owner of the W&SR private, which later merged
> into CGR. The CA only put the token and did not upgrade the track.
> It's THB's turn. When THB tries to upgrade I12, the game throws an
> exception (preview of the tile placement works OK; the exception
> occurs on clicking the "Lay tile"-button). Could this be a bug?
>
> Problem occurs in v1.7.13, v1.8.9 and v1.8.10 (other versions not
> tested). Java version 1.7.0_25 on Windows 8.1.
> This is a copy of the error message:
>
>
> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
> at rails.ui.swing.ORUIManager$1.compare(ORUIManager.java:969)
> at rails.ui.swing.ORUIManager$1.compare(ORUIManager.java:964)
> at java.util.TimSort.countRunAndMakeAscending(Unknown Source)
> at java.util.TimSort.sort(Unknown Source)
> at java.util.TimSort.sort(Unknown Source)
> at java.util.Arrays.sort(Unknown Source)
> at java.util.Collections.sort(Unknown Source)
> at
> rails.ui.swing.ORUIManager.relayBaseTokens(ORUIManager.java:964)
> at rails.ui.swing.ORUIManager.layTile(ORUIManager.java:840)
> at
> rails.ui.swing.ORUIManager.executeUpgrade(ORUIManager.java:1443)
> at
> rails.ui.swing.UpgradesPanel.actionPerformed(UpgradesPanel.java:486)
> 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.plaf.basic.BasicButtonListener.mouseReleased(Unknown Sour
> ce)
> 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.Window.dispatchEventImpl(Unknown Source)
> at java.awt.Component.dispatchEvent(Unknown Source)
> at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
> at java.awt.EventQueue.access$200(Unknown Source)
> at java.awt.EventQueue$3.run(Unknown Source)
> at java.awt.EventQueue$3.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
> ce)
> at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
> ce)
> at java.awt.EventQueue$4.run(Unknown Source)
> at java.awt.EventQueue$4.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Sour
> ce)
> at java.awt.EventQueue.dispatchEvent(Unknown Source)
> at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown
> Source)
> at java.awt.EventDispatchThread.pumpEventsForFilter(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)
>
> Game status file attached.
>
> Pieter
>
>
> ------------------------------------------------------------------------------
> Slashdot TV.
> Video for Nerds. Stuff that matters.
> http://tv.slashdot.org/
>
>
> _______________________________________________
> Rails-users mailing list
> Rai...@li...
> https://lists.sourceforge.net/lists/listinfo/rails-users
|