Skip to content

Comments

Update learning ropes campaign 0.50.11#8716

Merged
HammerGS merged 2 commits intomainfrom
Update-Learning-Ropes-Campaign-0.50.11
Feb 2, 2026
Merged

Update learning ropes campaign 0.50.11#8716
HammerGS merged 2 commits intomainfrom
Update-Learning-Ropes-Campaign-0.50.11

Conversation

@HammerGS
Copy link
Member

@HammerGS HammerGS commented Feb 2, 2026

No description provided.

Root Cause

  When spending XP to acquire a new skill, getSkill() returns null before the skill exists. After improveSkill() creates
   the skill, the local skill variable was never updated, causing a NullPointerException when accessing skill.getType()
  and skill.getLevel().

  Changes

  1. PersonnelTableMouseAdapter.java - Re-fetch the skill after improveSkill() creates it

  Files Changed

  - MekHQ/src/mekhq/gui/adapter/PersonnelTableMouseAdapter.java - Added skill re-fetch after creation
@HammerGS HammerGS requested a review from a team as a code owner February 2, 2026 01:08
Copilot AI review requested due to automatic review settings February 2, 2026 01:08
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the personnel skill improvement flow so that logging and reporting operate on the updated skill state, likely addressing an issue surfaced by the “learning ropes” campaign scenario.

Changes:

  • After improving a skill and spending XP, re-fetches the Skill object from the selected person to ensure subsequent logging uses the post-improvement skill instance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@HammerGS HammerGS merged commit 097f43c into main Feb 2, 2026
12 checks passed
@HammerGS HammerGS deleted the Update-Learning-Ropes-Campaign-0.50.11 branch February 2, 2026 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant