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
296 stars 286 forks source link

[0.50] NPE when selecting CI-scale LRM on small SV in Weapons panel #6101

Open gsparks3 opened 6 days ago

gsparks3 commented 6 days ago

Prerequisites and Pre-Issue Checklist

Severity *

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

Brief Description *

NPE popup appears while selecting a specific weapon as described in the title. Clicking past the popup has gameplay appear unaffected, except that the visual range-bands display will not display correctly for the bugged weapon. Relatively few people play with Small SV units, likely explaining why this bug was not reported previously.

Steps to Reproduce

  1. Load the provided save as "Kingstone Mercenaries".
  2. Select the "Icaro" unit (4 ton small SV VTOL)
  3. Go to the Weapon panel in the Unit Display. Switch back and forth between selecting one of its two weapons until a NPE popup appears (appeared on the first try for me).

Operating System *

Windows 10

Java Version *

17.0.11

MegaMek Suite Version *

v0.50.0

Custom MegaMek Version

No response

Attach Files

Save: report.sav.gz

Log with error: megamek.log

Final Checklist

SJuliez commented 2 days ago

@gsparks3 could you pass me that Icaro unit file

gsparks3 commented 2 days ago

Icaro Support Helicopter.zip