Skip to content

Fix NegRiskOperatorV2#11

Merged
mshrieve merged 1 commit intomainfrom
fix/neg-risk-operator-v2
Feb 18, 2026
Merged

Fix NegRiskOperatorV2#11
mshrieve merged 1 commit intomainfrom
fix/neg-risk-operator-v2

Conversation

@mshrieve
Copy link
Contributor

@mshrieve mshrieve commented Feb 16, 2026

Note

Low Risk
Small, localized change that only adds null checks and warning logs to avoid potential runtime crashes during event handling.

Overview
Adds defensive null handling for MarketResolution.load(...) in handleQuestionReset and handleQuestionResolved: if no entity exists for the given questionID, the handlers now log a warning and return instead of blindly casting and mutating.

This prevents runtime failures on unexpected/ out-of-order QuestionReset/QuestionResolved events and makes the subgraph indexing behavior more resilient.

Written by Cursor Bugbot for commit 9d25d85. This will update automatically on new commits. Configure here.

@mshrieve mshrieve merged commit 9f3d044 into main Feb 18, 2026
3 checks passed
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