Closed MrJul closed 2 weeks ago
This PR changes Avalonia.Native.ClipboardImpl and Avalonia.Native.ClipboardDataObject to throw ObjectDisposedException after they're disposed.
Avalonia.Native.ClipboardImpl
Avalonia.Native.ClipboardDataObject
ObjectDisposedException
It also adds nullable annotations for this file.
Using the objects after disposal results in a NullReferenceException.
NullReferenceException
You can test this PR using the following package version. 11.3.999-cibuild0053212-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]
11.3.999-cibuild0053212-alpha
What does the pull request do?
This PR changes
Avalonia.Native.ClipboardImpl
andAvalonia.Native.ClipboardDataObject
to throwObjectDisposedException
after they're disposed.It also adds nullable annotations for this file.
What is the current behavior?
Using the objects after disposal results in a
NullReferenceException
.