Code: Select all
java.lang.NullPointerException
at net.rptools.maptool.model.InitiativeListModel.isTokenVisible(InitiativeListModel.java:133)
at net.rptools.maptool.model.InitiativeListModel.getDisplayIndex(InitiativeListModel.java:76)
at net.rptools.maptool.client.ui.tokenpanel.InitiativePanel$20.run(InitiativePanel.java:342)
at java.awt.event.InvocationEvent.dispatch(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)
1. Place a couple tokens on the map. Add them both to initiative.
2. On one token, place a macro with the code [h:removeFromInitiative()]
3. Start server, and connect with another instance
4. On Server instance, open the Init panel, select one token in the initiative window, and remove that token using the macro you wrote in step 2.
REsult: error is thrown on connected clients, but not on the server.
Edit: it's not every time, now that I check again - I think it's either when the token being removed has initiative, or when it's selected in the window. I'm checking the various combinations now.
Edit Again: okay, it appears to happen if you use Wiki: removeFromInitiative() on the token that is selected in the Initiative Window. If so, client machines will throw an error.