Skip to content

NPE in Mekhq meklab when adding ammunition to Leopard CV (2581) #5555

Open
@OrbMonky

Description

@OrbMonky

Prerequisites and Pre-Issue Checklist

  • I'm reporting the issue to the correct repository:

  • MegaMek

  • MegaMekLab

  • MekHQ

  • I've tested the issue against at least the latest MILESTONE version

  • I've asked on the MegaMek Discord about the error

  • I've reviewed the BattleTech rules and MekHQ documentation, and I've confirmed that something isn't working as intended.

  • I've searched the Github tracker and haven't found the issue listed

Severity *

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

Brief Description *

image
When hitting 'add' to add ammo for an LRM10 to a Leopard refit, it provided an NPE and failed to progress.

image
Repeated attempts reproduced the error and continued failing to progress.

Steps to Reproduce

  1. Take dropship to mekhq meklab for refit
  2. remove armaments
  3. add new armaments, including lrm10
  4. add lrm10 ammo

Operating System *

Windows 10

Java Version *

17

MekHQ Suite Version *

None

Custom MekHQ Version

12/26 Nightly / 0.50.02 SNAPSHOT

Attach Files

logs.zip

Final Checklist

  • I've checked to make sure that this issue has not already been filed
  • I'm reporting only one issue in this ticket for clarity and focus

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugMulti-Crew UnitIssues relating to multi-crew unitsSeverity: MediumIssues described as medium severity as per the new issue form

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions