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 OutstandingScenariosNagLogic for Outstanding Scenario Nags #5772

Merged
merged 2 commits into from
Jan 15, 2025

Conversation

IllianiCBT
Copy link
Collaborator

  • Added a null date check to prevent further processing of scenarios with null dates (such as uninitialized scenarios in StratCon).

Fix #5770

Previously, scenarios with null dates were not explicitly handled, which could lead to unexpected behavior. Added a null date check to prevent further processing of such scenarios. This improves stability and guards against potential issues.
Moved the null date check earlier in the loop to avoid potential null pointer exceptions when processing scenarios. This ensures scenarios with null dates are skipped before any operations on their dates are conducted.
@IllianiCBT IllianiCBT added the Bug label Jan 13, 2025
@IllianiCBT IllianiCBT self-assigned this Jan 13, 2025
@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.21%. Comparing base (fd739ba) to head (d55f348).
Report is 51 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5772      +/-   ##
============================================
- Coverage     10.21%   10.21%   -0.01%     
+ Complexity     6076     6074       -2     
============================================
  Files          1010     1010              
  Lines        139310   139312       +2     
  Branches      20448    20449       +1     
============================================
- Hits          14231    14228       -3     
- Misses       123703   123708       +5     
  Partials       1376     1376              

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

@HammerGS HammerGS merged commit 8c107ed 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

InvocationTargetException
3 participants