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

Add additional null checks to Avalonia.Native.WindowBaseImpl. #7299

Merged
merged 1 commit into from
Jan 3, 2022

Conversation

grokys
Copy link
Member

@grokys grokys commented Jan 3, 2022

What does the pull request do?

In some places in WindowBaseImpl we were checking for a null _native reference, but in other places we were assuming it's non-null. Add checks for a null reference there in all places except the Init method (which I assume it can't be null).

Fixed issues

Fixes #7231

@avaloniaui-team
Copy link
Contributor

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

@danwalmsley danwalmsley merged commit ae71146 into master Jan 3, 2022
@danwalmsley danwalmsley deleted the fixes/7231-avalonia-native-null-checks branch January 3, 2022 19:10
grokys pushed a commit that referenced this pull request Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash when closing the application
3 participants