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

Added 'null' Protection to AtBDynamicScenarioFactory #5787

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

IllianiCBT
Copy link
Collaborator

  • Prevented null templates from causing issues in scenario generation by adding a check and skipping them.

Why they're included in the list of player force templates is beyond me, and I wasn't able to track down the root cause. This PR at least stops it from impeding the player's experience.

Fix #5753

Prevented null templates from causing issues in scenario generation by adding a check and skipping them. This ensures better stability and avoids potential crashes during processing.
@IllianiCBT IllianiCBT added Bug StratCon Bugs relating strictly to StratCon labels Jan 15, 2025
@IllianiCBT IllianiCBT self-assigned this Jan 15, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.19%. Comparing base (7dcf890) to head (ceca9ba).
Report is 51 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5787      +/-   ##
============================================
- Coverage     10.21%   10.19%   -0.02%     
+ Complexity     6077     6074       -3     
============================================
  Files          1010     1011       +1     
  Lines        139311   139505     +194     
  Branches      20449    20504      +55     
============================================
- Hits          14231    14224       -7     
- Misses       123711   123909     +198     
- Partials       1369     1372       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@HammerGS HammerGS merged commit 7032871 into MegaMek:master Jan 15, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug StratCon Bugs relating strictly to StratCon
Projects
None yet
3 participants