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

Latest - NPE when trying to get player settings after loading game #6313

Open
7 tasks done
psikomonkie opened this issue Dec 24, 2024 · 2 comments
Open
7 tasks done
Labels
Blocker Severity: Critical Issues described as critical as per the new issue form

Comments

@psikomonkie
Copy link
Collaborator

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 MegaMek 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 *

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

Brief Description *

NPE when trying to get to Player Settings in a game that was loaded.

Encountered while investigating #6277

Steps to Reproduce

  1. Start a MegaMek game
  2. Once in game, save and quit.
  3. Load save.
  4. Game->Player Settings - NPE

Operating System *

Windows 11

Java Version *

17.0.13

MegaMek Suite Version *

Free Text (type manually)

Custom MegaMek Version

Latest

Attach Files

4.sav.gz

megamek.log

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
@psikomonkie
Copy link
Collaborator Author

psikomonkie commented Dec 24, 2024

Reach out to me if you're gonna look into this, I've been looking into this under the suspicion it relates to #6277

@HammerGS HammerGS added Blocker Severity: Critical Issues described as critical as per the new issue form labels Dec 24, 2024
@HammerGS
Copy link
Member

From the log

java.lang.NullPointerException: Cannot invoke "String.startsWith(String)" because "name" is null
	at megamek.server.ServerBoardHelper.getPossibleGameBoard(ServerBoardHelper.java:112)
	at megamek.client.ui.swing.lobby.PlayerSettingsDialog.setupStartGrid(PlayerSettingsDialog.java:736)
	at megamek.client.ui.swing.lobby.PlayerSettingsDialog.startSection(PlayerSettingsDialog.java:528)
	at megamek.client.ui.swing.lobby.PlayerSettingsDialog.createCenterPane(PlayerSettingsDialog.java:318)
	at megamek.client.ui.baseComponents.AbstractButtonDialog.initialize(AbstractButtonDialog.java:131)
	at megamek.client.ui.swing.lobby.PlayerSettingsDialog.<init>(PlayerSettingsDialog.java:137)
	at megamek.client.ui.swing.ClientGUI.customizePlayer(ClientGUI.java:697)
	at megamek.client.ui.swing.ClientGUI.actionPerformed(ClientGUI.java:865)
	at megamek.client.ui.swing.CommonMenuBar.lambda$actionPerformed$0(CommonMenuBar.java:446)

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

No branches or pull requests

2 participants