Menu

#187 Loading unit causes Illegal Argument Exception

Undetermined
open
nobody
None
none
1
2015-06-18
2015-06-18
No

So found another unit that MML doesn't like, the Lightning LTG16S. For whatever reason when I try to load it it crashes MML with the following

java.lang.IllegalArgumentException: setSelectedIndex: 3 out of bounds

I have searched the blk file to no and only found one possible cause. Line 601 of StructureTab refers to the engine type which the blk lists as 4. Building a new blk from scratch list the engine type as 2 which leads me to believe the engine type is conflicting with the rules level (Standard).

The file is fixed, but should MML just freeze up like that or is there a solution that can be added so MML rejects the file more gracefully?

1 Attachments

Discussion


Log in to post a comment.