MegaMek / megameklab

MegaMekLab is a BattleTech unit modification program. It allows creating and modifying all unit types available in MegaMek from Support Vehicles up to WarShips. It also allows printing record sheets for single or multiple units.
http://www.megamek.org
86 stars 130 forks source link

[0.49.18] Opening equipment tab for aerospace/conventional fighters causes NPE #1438

Closed sirbayer closed 7 months ago

sirbayer commented 7 months ago

Environment

HQ MekLab 0.49.18 Windows 10 Java 17.0.10

Description

Opening the equipment tab on the aerospace/conventional fighter screen causes an NPE, a failure to refresh the window's graphics, and (it appears) no equipment loading. The Criticals screen still loads correctly and displays all installed equipment.

Happens in all circumstances - selecting 'new Aerospace' from the startup menu, swapping to it from the File -> Switch Unit Type menu, or loading an extant aerospace file.

Also appears to reset the armor tonnage on support fixed-wing craft.

Files

megameklab.log

Sleet01 commented 7 months ago

The NPE is a duplicate of MegaMek/megamek#5176

I believe the armor tonnage issue has also been fixed so I'll close this for now, but I'll double-check that and re-open if not.