MegaMek / megamek

MegaMek is a networked Java clone of BattleTech, a turn-based sci-fi boardgame for 2+ players. Fight using giant robots, tanks, and/or infantry on a hex-based map.
http://www.megamek.org
GNU General Public License v2.0
299 stars 291 forks source link

[0.50.01-SNAPSHOT] Uncaught exception NPE (in MHQ) when closing MHQ-origin MegaMek Scenario in progress #6148

Open PhoenixHeart512 opened 1 month ago

PhoenixHeart512 commented 1 month ago

Prerequisites and Pre-Issue Checklist

Severity *

Medium (Gameplay Limitation): Non-core functionality is impaired, providing a suboptimal but playable experience.

Brief Description *

NPE occurred in MekHQ when I closed an in-progress Scenario. Based on the NPE text, it might be due to the fact that my ASF reinforcements had not yet deployed and were not on the board when the scenario was closed and MegaMek tried to report back to MekHQ.

Scenario is still in-progress, the intent was to close and load an earlier save.

Steps to Reproduce

  1. Load campaign file "Tempest Winds II.cpnx
  2. Briefing tab -> Scenario: Isolated Dropship Defense -> Load Saved Game
  3. Load "atb2.sav.gz"
  4. Assign bots (optional? not sure)
  5. select final firing target for Kontio (I targeted the Grand Dragon but I don't think it matters)
  6. Observe Kontio getting it's chassis wrecked by the Kodiak I wanted it to punch and falling over instead
  7. Ragequit and observe NPE in MekHQ

Operating System *

Windows 10

Java Version *

Java Version: 17.0.6

MekHQ Suite Version *

Free Text (type manually)

Custom MekHQ Version

mekhq.MekHQ.initializeLogging(MekHQ.java:307) - Starting MekHQ v0.50.1-SNAPSHOT Build Date: 2024-10-23T03:23:14.592586070 Today: 2024-10-24 Origin Project: MekHQ Java Vendor: Eclipse Adoptium Java Version: 17.0.6 Platform: Windows 10 10.0 (amd64) System Locale: en_US Total memory available to MekHQ: 8 GB MM Code Revision: 8bea36f57e240eb47fc127f6a2fe2a0f48c568e6 MML Code Revision: 384380362038ce744734c3a05836fd5d511d1df0 MHQ Code Revision: 52412bf1b23e9227e0528c642ba52062027c2cd2

Attach Files

NPEexitScenario.zip

Final Checklist

IllianiCBT commented 1 month ago

Based on the log I think this is a MegaMek issue.