Skip to content

Conversation

@M-W-K
Copy link
Contributor

@M-W-K M-W-K commented Feb 12, 2025

What

Fixes NPEs from querying a toolbelt stack before its handler capability has been initialized.

Implementation Details

Added a static fallback instance in case a handler cannot be found on a toolbelt stack.

Outcome

Mods that query a toolbelt who's capabilities are being initialized for information won't throw an NPE

@M-W-K M-W-K added type: refactor Suggestion to refactor a section of code ignore changelog PR should not be added to the changelog. labels Feb 12, 2025
@M-W-K M-W-K requested a review from a team as a code owner February 12, 2025 02:37
@htmlcsjs htmlcsjs enabled auto-merge (squash) February 13, 2025 18:43
@kumquat-ir kumquat-ir added type: refactor Suggestion to refactor a section of code ignore changelog PR should not be added to the changelog. and removed type: refactor Suggestion to refactor a section of code ignore changelog PR should not be added to the changelog. labels Feb 13, 2025
@htmlcsjs htmlcsjs merged commit a061c0d into master Feb 13, 2025
4 of 5 checks passed
@htmlcsjs htmlcsjs deleted the toolbelt-race branch February 13, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore changelog PR should not be added to the changelog. type: refactor Suggestion to refactor a section of code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants