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

Loading or printing LAM causes ArrayIndexOutOfBoundsException #553

Closed
HammerGS opened this issue Apr 2, 2020 · 0 comments · Fixed by #554
Closed

Loading or printing LAM causes ArrayIndexOutOfBoundsException #553

HammerGS opened this issue Apr 2, 2020 · 0 comments · Fixed by #554

Comments

@HammerGS
Copy link
Member

HammerGS commented Apr 2, 2020

ArrayIndexOutOfBoundsException when trying to print RS for LAM.

From the Log

Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Index 8 out of bounds for length 8
	at megamek.common.Entity.getCritical(Entity.java:4352)
	at megameklab.com.util.UnitUtil.expandUnitMounts(UnitUtil.java:1779)
	at megameklab.com.util.UnitPrintManager.printAllUnits(UnitPrintManager.java:143)
	at megameklab.com.util.UnitPrintManager.printEntity(UnitPrintManager.java:70)
	at megameklab.com.util.MenuBarCreator.jMenuPrintCurrentUnit(MenuBarCreator.java:905)
	at megameklab.com.util.MenuBarCreator.lambda$createFileMenu$31(MenuBarCreator.java:383)

Environment

What version of MekLab does your issue apply to? 47.5 from Repo
What operating system are you using? Windows

Files

UrbanMechUM-LAM.zip
megameklablog.txt

@neoancient neoancient changed the title UrbanLAM causes ArrayIndexOutOfBoundsException Loading or printing LAM causes ArrayIndexOutOfBoundsException Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant