Skip to content

Reject nullable component parameters in generated event subscriptions - #6971

Open
rhailrake wants to merge 1 commit into
space-wizards:masterfrom
rhailrake:fix/6873-reject-nullable-event-components
Open

Reject nullable component parameters in generated event subscriptions#6971
rhailrake wants to merge 1 commit into
space-wizards:masterfrom
rhailrake:fix/6873-reject-nullable-event-components

Conversation

@rhailrake

Copy link
Copy Markdown
Contributor

Fixes #6873.

Nullable component parameters are not valid for component-filtered event subscriptions, since the event bus never supplies null components. The subscription generator currently carries the nullable annotation into generated type arguments, which produces invalid generated code.

This follows the direction discussed in #6882: report the invalid handler instead of silently removing its nullable annotation.

@rhailrake
rhailrake requested a review from DrSmugleaf as a code owner August 12, 2026 15:51
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.

Event subscription code generator generates bad code for nullable component parameters

1 participant