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 134 forks source link

Export to PDF Broken on Warships. #1635

Open JoeJohnJordan opened 1 month ago

JoeJohnJordan commented 1 month ago

Prerequisites and Pre-Issue Checklist

Severity *

Low (Minor/Nuisance): Minor glitches or cosmetic issues that don’t affect gameplay and occur rarely.

Brief Description *

Trying to export a Warship Record Sheet to PDF results in a null point exception and if you attempt to print any warship record sheet after the fact it results in a a null point exception and gives you a corrupted PDF file that is unable to be opened necessitating Mega Mek Lab to be reopened to print a sheet succesfully.

Attempting to print without exporting prior results in the normal function of the process.

Steps to Reproduce

No response

Operating System *

Windows 10

Java Version *

11.0.17

MegaMek Suite Version *

v0.49.19.1

Custom MegaMekLab Version

No response

Attach Files

No response

Final Checklist

repligator commented 1 month ago

Can you post the log file? I think this might be the issue that was addressed in https://github.com/MegaMek/megameklab/pull/1601 .

Edit: To clarify, we need the logs from when you try to export a warship PDF.

JoeJohnJordan commented 1 month ago

megameklab.log Totally missed and forgot about that prior issue, I did notice it last month when browsing but didn't remember/notice it again when I posted this issue.

HammerGS commented 1 month ago

The logs are empty.