8000 Custom Meklab Error · Issue #6790 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Custom Meklab Error #6790

Ne 8000 w 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

Closed
5 tasks done
William12261976 opened this issue Apr 27, 2025 · 5 comments · Fixed by #6808
Closed
5 tasks done

Custom Meklab Error #6790

William12261976 opened this issue Apr 27, 2025 · 5 comments · Fixed by #6808

Comments

@William12261976
Copy link

Brief Description *

When making a custom vehicle, when I used GM mode to refit a custom unit and error popped up. It seems to still create the unit, but posting for completeness.

3. Steps to Reproduce

No response

Attach Files

The Reapers01.cpnx.gz

mekhq.log

Severity *

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

MekHQ Suite Version *

MekHQ-0.50.05

Operating System *

Windows 10

Java Version *

17.0.12

Final Verification

  • I confirm this is a single, unique issue that hasn't been reported before
  • I have filled and provided all necessary information above
  • I have included any and all logs, custom units, and CPNX (save) files
  • 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
20:59:03,226 ERROR [mekhq.MekHQ] {AWT-EventQueue-0}
mekhq.MekHQ.lambda$main$1(MekHQ.java:360) - Uncaught java.lang.NullPointerException detected. Please open up an issue containing all logs, the game save file, and customs at https://github.com/MegaMek/megamek/issues . If Sentry is enabled, the error has also been logged.
java.lang.NullPointerException: Cannot invoke "megamek.common.Game.getEntitiesVector()" because "this.game" is null
	at megamek.common.Entity.setC3Master(Entity.java:6294)
	at megamek.common.Entity.setC3Master(Entity.java:6263)
	at megamek.common.util.C3Util.copyC3Networks(C3Util.java:111)
	at mekhq.campaign.parts.Refit.complete(Refit.java:1695)
	at mekhq.campaign.parts.Refit.succeed(Refit.java:1933)
	at mekhq.gui.adapter.UnitTableMouseAdapter.lambda$actionPerformed$1(UnitTableMouseAdapter.java:429)

@psikomonkie
Copy link
Collaborator

I'll take a look at this today.

See: #6753

@psikomonkie
Copy link
Collaborator

@William12261976 I believe there is a workaround: Can you confirm if saving & reloading fixes the issue?

I'm unable to check on your save directly - can you upload your customs?

Image

There's still a bug that needs fixed, but hopefully this'll let you continue your campaign while still being able to refit.

Thanks!

@William12261976
Copy link
Author

Image

Here is an example.

I just did a quick marauder refit and that is what it says every time I update any unit in meklab.

It still allows it to happen, just makes the error.

@William12261976
Copy link
Author

psikomonkie added a commit to psikomonkie/mekhq that referenced this issue Apr 28, 2025
Scoppio added a commit that referenced this issue May 1, 2025
Issue #6790: Prevent NPE from C3 when Refitting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
0