Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Issue]NPE error from firing squadron external weapons #6603

Open
4 tasks done
wolfstormash opened this issue Feb 23, 2025 · 3 comments
Open
4 tasks done

[Issue]NPE error from firing squadron external weapons #6603

wolfstormash opened this issue Feb 23, 2025 · 3 comments
Labels
Aerospace Bug Severity: High Issues described as high severity as per the new issue form

Comments

@wolfstormash
Copy link

wolfstormash commented Feb 23, 2025

Brief Description *

seems similar to this issue #5569

might also be related to
#2847

Shooting LAA missiles with squadrons in megamek causes a NPE error.

Shootingspace save is saved during shooting prior to the bug, test2 is a save after encountering the error

also doesn't seem like my logs properly saved? but I added them anyways. (Working logs added in a new comment below)

3. Steps to Reproduce

Turn on squadrons
Shoot LAA Missile

Attach Files

shootingspace.sav.gz

test2.sav.gz

logs - Copy.zip

Severity *

Critical (Game-breaking/Crash): The game crashes or a core feature (like saving, loading, or network connection) is completely unusable.

MegaMek Suite Version *

MegaMek v0.50.0

Operating System *

Windows 10

Java Version *

 Java Vendor: Eclipse Adoptium     Java Version: 17.0.12

Final Verification

  • I confirm this is a single, unique issue that hasn't been reported before
  • I have included all necessary information and files to help reproduce this issue
  • I have asked on MegaMek Discord about this issue
  • I have confirmed this issue is being opened on the correct repository: MegaMek, MegaMekLab, or MekHQ
@HammerGS
Copy link
Member

There is nothing I can see in the logs

@HammerGS HammerGS added Bug Aerospace Severity: High Issues described as high severity as per the new issue form labels Feb 23, 2025
@wolfstormash
Copy link
Author

wolfstormash commented Feb 23, 2025

I’ll see if I can recreate the bug again later tonight for logs(if it lets me connect as everyone else in the same game) but we had it happen twice in a row, first time we thought it was b/c of our longtom cannons but it still happened the second time without using them, someone suggested it might be the LAA and squadrons but I was able to use them VS princess in a quick test.

oh, and skipping through the remaining units after shooting the LAA on the first save did not work, it hanged at the end and never showed a report.

@wolfstormash
Copy link
Author

wolfstormash commented Feb 23, 2025

logs - Copy.zip

Image

that actually didn't take very long to do, hopefully the logs saved properly that time.

and I can see this in the megamek log file java.lang.NullPointerException: Cannot invoke "megamek.common.Mounted.setNWeapons(int)" because the return value of "megamek.common.FighterSquadron.getEquipment(int)" is null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Aerospace Bug Severity: High Issues described as high severity as per the new issue form
Projects
None yet
Development

No branches or pull requests

2 participants