-
Notifications
You must be signed in to change notification settings - Fork 277
Closed
Labels
bugtestedThis issue has been QA tested by someone other than the developer.This issue has been QA tested by someone other than the developer.
Description
Describe the Bug
When loading older campaigns the tokens may have LastPath data using AStarCellPoints. This produces an exception causing the campaign load to fail.
java.lang.ClassCastException: class net.rptools.maptool.client.walker.astar.AStarCellPoint cannot be cast to class net.rptools.maptool.model.AbstractPoint (net.rptools.maptool.client.walker.astar.AStarCellPoint and net.rptools.maptool.model.AbstractPoint are in unnamed module of loader 'app')
at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
at java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1092) ~[?:?]
at net.rptools.maptool.model.Path.toDto(Path.java:288) ~[main/:?]
at net.rptools.maptool.model.Token.toDto(Token.java:2916) ~[main/:?]
at net.rptools.maptool.model.Zone.lambda$toDto$29(Zone.java:2273) ~[main/:?]
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) ~[?:?]
...
To Reproduce
- Load attached campaign file in 1.12 beta or current dev branch.
- See exception
Expected Behaviour
Bad path data should be corrected on load
Remove .zip from filename.
AStarCellPointError2.cmpgn.zip
.
Screenshots
No response
MapTool Info
Current Dev and 1.12.0 beta 1
Desktop
Windows 10
Additional Context
Partially corrected in PR #3504.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugtestedThis issue has been QA tested by someone other than the developer.This issue has been QA tested by someone other than the developer.