[1.3b56] BUG, mild: Exception thrown by initiative tracker

Moderators: dorpond, trevor, Azhrei, giliath, jay, Mr.Ice, MapTool BugReport Manager

Post Reply
User avatar
codonell
Kobold
Posts: 12
Joined: Sat Jul 25, 2009 2:59 pm

[1.3b56] BUG, mild: Exception thrown by initiative tracker

Post by codonell »

Host:
Windows XP Pro. SP3
JVM:
java version "1.6.0_07"
Java(TM) SE Runtime Environment (build 1.6.0_07-b06)
Java HotSpot(TM) Client VM (build 10.0-b23, mixed mode, sharing)

Steps to reproduce:
1. Start instance 1 of maptool
2. Start a server.
3. Start instance 2 of maptool.
4. Connect to server in instance 1.
5. Open initiative window via Window->Initiative
6. Right click anywhere in the empty section of the initiative tracker where tokens normally appear.

Expected behaviour:
- Nothing happens.

Observed behaviour:
- Exception is thrown.
~~~
java.lang.IndexOutOfBoundsException: Bad visible token index: -1
at net.rptools.maptool.model.InitiativeListModel.getElementAt(InitiativeListModel.java:252)
at net.rptools.maptool.client.ui.tokenpanel.InitiativePanel$MouseHandler.mouseClicked(InitiativePanel.java:697)
at java.awt.AWTEventMulticaster.mouseClicked(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.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:24)
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)
~~~

Notes: If the initiative tracker contains tokens then no exception is thrown.

Reported originally against 1.3b54, and marked fixed here:
http://forums.rptools.net/viewtopic.php?p=98972#p98972
but the bug is still present in 1.3b56.

User avatar
trevor
Codeum Arcanum (RPTools Founder)
Posts: 11311
Joined: Mon Jan 09, 2006 4:16 pm
Location: Austin, Tx
Contact:

Re: [1.3b56] BUG, mild: Exception thrown by initiative tracker

Post by trevor »

Fixed for 1.3b57
Dreaming of a 1.3 release

Post Reply

Return to “Resolved”