Skip to content

Fix typo in RecognizerBase: invalid variable in condition #115902

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

Merged
merged 1 commit into from
May 28, 2025

Conversation

MaxPatri
Copy link
Contributor

@MaxPatri MaxPatri commented May 22, 2025

Found by Linux Verification Center (linuxtesting.org) with SVACE.

@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label May 22, 2025
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label May 22, 2025
Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. It's a little concerning that this hasn't manifested before; that suggests it's likely that every non-null eventData is a SpeechEvent. There's the possibility that other things were coming in, triggering null ref exceptions here, and those were being eaten somewhere higher up, in which case this could now start exercising behavior that wasn't previously invoked or invoked in the same circumstance. But the current code is obviously wrong, and tests are passing, so I think it's worth fixing. Hopefully it's actually the case that this never manifested as a problem because all non-null eventDatas are already SpeechEvents.

@stephentoub
Copy link
Member

/ba-g test failures are not relevant

@stephentoub stephentoub merged commit 08e6c2e into dotnet:main May 28, 2025
84 of 88 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution Indicates that the PR has been added by a community member needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants