Skip to content

Add null check for TextInputMethodClient in OnSelectionChanged() method #12415

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
Aug 2, 2023

Conversation

3dfxuser
Copy link
Contributor

@3dfxuser 3dfxuser commented Aug 2, 2023

What does the pull request do?

When a text input element loses focus while typing, app crashes with NRE.

What is the current behavior?

When a text input element loses focus while typing, the Client is null here
изображение

What is the updated/expected behavior with this PR?

Add check for null for the Client

Fixed issues

Fixes #12413

@3dfxuser
Copy link
Contributor Author

3dfxuser commented Aug 2, 2023

@dotnet-policy-service agree

@avaloniaui-team
Copy link
Contributor

You can test this PR using the following package version. 11.0.999-cibuild0038270-beta. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@Gillibald Gillibald added this pull request to the merge queue Aug 2, 2023
Merged via the queue into AvaloniaUI:master with commit 92957eb Aug 2, 2023
@3dfxuser 3dfxuser deleted the fix branch August 2, 2023 12:05
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.

Android Back Button Crash
3 participants