Skip to content
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

Fix NRE on losing focus #359 #360

Merged
merged 1 commit into from
Jul 19, 2023
Merged

Fix NRE on losing focus #359 #360

merged 1 commit into from
Jul 19, 2023

Conversation

unconverged
Copy link
Contributor

This pull request fixes issue #359 . It uses default TextSelection(0, 0) for the case when TextArea is null, and thus prevents NRE.

I tested this a bit and it looks like it does not break things.

@unconverged
Copy link
Contributor Author

@dotnet-policy-service agree

@danipen danipen merged commit e9cb45e into AvaloniaUI:master Jul 19, 2023
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.

3 participants