8000 Trying to bring up campaign options after loading campaign causes an exception · Issue #7114 · MegaMek/mekhq · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Trying to bring up campaign options after loading campaign causes an exception #7114

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

Open
5 tasks done
mchapman1970 opened this issue May 26, 2025 · 6 comments
Open
5 tasks done
Labels
Bug Severity: High Issues described as high severity as per the new issue form

Comments

@mchapman1970
Copy link

Brief Description *

only one of my campaigns is having this issue after downloading a new version in a clean folder I open a campaign and when trying to open the campaign options it causes an error message

3. Steps to Reproduce

No response

Attach Files

mekhq.log

Severity *

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

MekHQ Suite Version *

0.50.06

Operating System *

windows 11

Java Version *

java 17

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
@IllianiBird
Copy link
Collaborator
IllianiBird commented May 26, 2025

If you can upload the campaign and your customs we'd need that to identify the root cause.

@HammerGS
Copy link
Member

From the log.

mekhq.MekHQ.lambda$main$1(MekHQ.java:362) - 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 "mekhq.campaign.personnel.skills.SkillType.isSubTypeOf(mekhq.campaign.personnel.skills.enums.SkillSubType)" because "skillType" is null
	at mekhq.utilities.spaUtilities.SpaUtilities.getSpaCategory(SpaUtilities.java:138)
	at mekhq.gui.campaignOptions.contents.AbilitiesTab.buildAbilityInfo(AbilitiesTab.java:204)
	at mekhq.gui.campaignOptions.contents.AbilitiesTab.buildAllAbilityInfo(AbilitiesTab.java:144)
	at mekhq.gui.campaignOptions.contents.AbilitiesTab.initialize(AbilitiesTab.java:114)
	at mekhq.gui.campaignOptions.contents.AbilitiesTab.<init>(AbilitiesTab.java:98)
	at mekhq.gui.campaignOptions.CampaignOptionsPane.createAdvancementParentTab(CampaignOptionsPane.java:323)
	at mekhq.gui.campaignOptions.CampaignOptionsPane.initialize(CampaignOptionsPane.java:151)
	at mekhq.gui.campaignOptions.CampaignOptionsPane.<init>(CampaignOptionsPane.java:129)
	at mekhq.gui.campaignOptions.CampaignOptionsDialog.<init>(CampaignOptionsDialog.java:102)
	at mekhq.gui.CampaignGUI.menuOptionsActionPerformed(CampaignGUI.java:1628)

@HammerGS HammerGS added Bug Severity: High Issues described as high severity as per the new issue form labels May 26, 2025
@IllianiBird
Copy link
Collaborator

Spotted that, but need the campaign save so I can find out what skill is throwing a wobbly.

@mchapman1970
Copy link
Author

@savanik
Copy link
Contributor
savanik commented May 26, 2025

Confirmed in 50.06.
Confirmed fixed by @IllianiBird in PR #6904 for nightly.

@IllianiBird
Copy link
Collaborator

I don’t believe this issue and that PR are related

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

No branches or pull requests

4 participants
0