Skip to content

Conversation

@MrJul
Copy link
Member

@MrJul MrJul commented Oct 8, 2025

What does the pull request do?

This PR fixes PlatformDataTransferItem.TryGetRaw() not returning null for unknown formats.
Unit tests have been added.

What is the current behavior?

TryGetRaw() incorrectly returns a Task.

What is the updated/expected behavior with this PR?

TryGetRaw() returns null.

Fixed issues

@MrJul MrJul added bug backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Oct 8, 2025
@MrJul MrJul marked this pull request as ready for review October 8, 2025 19:11
@MrJul MrJul changed the title Fix/platform data transfer item value Fix PlatformDataTransferItem.TryGetRaw for unknown formats Oct 8, 2025
@avaloniaui-bot
Copy link

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

@maxkatz6 maxkatz6 added this pull request to the merge queue Oct 9, 2025
Merged via the queue into AvaloniaUI:master with commit ed38536 Oct 9, 2025
12 checks passed
MrJul added a commit that referenced this pull request Oct 23, 2025
* Add failing test for PlatformDataTransferItem

* Fix PlatformDataTransferItem.TryGetRaw
@MrJul MrJul added backported-11.3.x and removed backport-candidate-11.3.x Consider this PR for backporting to 11.3 branch labels Oct 23, 2025
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.

PlatformDataTransferItem.TryGetRaw() returns not null in case of an unsupported DataFormat

4 participants