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

CustomComboBox::getSelectedItem NPE in MekHQ-origin MML #905

Closed
Dzlan opened this issue Apr 20, 2021 · 0 comments · Fixed by #915
Closed

CustomComboBox::getSelectedItem NPE in MekHQ-origin MML #905

Dzlan opened this issue Apr 20, 2021 · 0 comments · Fixed by #915
Labels

Comments

@Dzlan
Copy link

Dzlan commented Apr 20, 2021

Environment

MekHQ version is 0.48.0 Stable
Operating System is Windows 10
Java version: mekhqlog.txt does not appear to state the java version.
Running java --version in cmd shows the following
java 16 2021-03-16
Java(TM) SE Runtime Environment (build 16+36-2231)
Java HotSpot(TM) 64-Bit Server VM (build 16+36-2231, mixed mode, sharing)

Description

When I right click a mech in the hanger, and click on Customize > Customize in Mek Lab
The MekLab remains empty. The string in the top left saying "No unit loaded" disappears as well

Every time I attempt this in 1 sitting I'm met with the following error in the log file.
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "java.lang.Integer.intValue()" because the return value of "megameklab.com.ui.util.CustomComboBox.getSelectedItem()" is null

Possibly related, I've had two missions within my contract that have spawned 0 enemies. I needed to generated the enemy force myself in Megamek. I havn't looked into errors or anything else however or saved at that point as I was new and still working out what is normal and what is not normal.

Please see attached log files for the full
megameklog.txt
mekhqlog.txt
megameklablog.txt

@Windchild292 Windchild292 transferred this issue from MegaMek/mekhq Apr 20, 2021
@Windchild292 Windchild292 changed the title MekHQ - MekLab Exception in thread "AWT-EventQueue-0" CustomComboBox::getSelectedItem NPE in MekHQ-origin MML Apr 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants