I get an NullPointerexception with the following errorlog text:
The steps to create this error is:
Create a new module
Under “Main Map->Map Boards” create a new board with default options, call it fx A.
Now add a Chart to the module, again with default values.
Add a Tabbed Panel to the newly created Chart, call it fx. A
Now add a Map to the newly created chart. Giving the Map a name.
If you try to save now, you are warned that there are two maps called “Main Map”, so better rename one of them before we proceed. (Why not give the new map a name like “Main Map 2” etc?)
Add a board to the map you created in step 5
Save the mod
Close it down
Open it again by editing module. No problems when opening!
Right click your “Main Map” the first one created when you made the module and not the one you created in p. 5 and select properties.
Now click the “Include toolbar button to show/hide” and click OK.
Save the module.
Close the module.
Open it again, and voila, an NullPointerException
Ok back to reality…
I want to have my main map as a window on its own and a tapped panel with different maps where I can place order counters… I’m not sure if I’m doing something wrong or there is indeed an “feature” in Vassal.
That’s peculiar. The test module works fine in trunk@3958 buf failed in
trunk@3939. I don’t see why the changes over that interval made a
difference for this.
Is it worth looking into why the problem went away?
I think some Map is calling ComponentSplitter.hideComponent() when no Map should be docked into the controls window. Since the offending code used to be wrapped in a SwingUtilities.invokeLater(), I’ll bet there’s some race condition where a Map calls hideComponent() before it un-docks itself from the main controls window.