Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Commands & Colors: Napoleonics V5] IllegalArgumentException: Piece is not on this map #13730

Open
uckelman opened this issue Dec 4, 2024 · 1 comment
Labels
ABR From the Automatic Bug Reporter bug Something isn't working

Comments

@uckelman
Copy link
Contributor

uckelman commented Dec 4, 2024

ABR
Version 3.7.15
Reporter [email protected]
Error Log 2233091 bytes
Replaying a log.
Undid a couple of steps, started logging.
Redid two steps and closed log.
Tried drags a piece (card) on the main map -> Exception (java.lang.IllegalArgumentException: Piece is not on this map).

Commands & Colors: Napoleonics V5 v5.1.0a1100 3.7.15

java.lang.IllegalArgumentException: Piece is not on this map
 at VASSAL.build.module.Map.positionOf(Map.java:2577)
 at VASSAL.build.module.map.MenuDisplayer.maybePopup(MenuDisplayer.java:274)
 at VASSAL.build.module.map.MenuDisplayer.mouseReleased(MenuDisplayer.java:248)
 at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:297)
@uckelman uckelman added the ABR From the Automatic Bug Reporter label Dec 4, 2024
@riverwanderer
Copy link
Collaborator

riverwanderer commented Dec 4, 2024

Short log file leaving module in state prior to the exception: here.

It appears that when dragged the card (Superb Infantry Training) has a null OldMap (and presumably, before dragging, CurrentMap is also null). This issue seems to be associated with logfile or undo operations or both. The same actions work find normally in the original play or when reading the logfile.

Log file may be viewed using C&C Napoleonics v5.1.0 (beta10 or later).

@riverwanderer riverwanderer added the bug Something isn't working label Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ABR From the Automatic Bug Reporter bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants