From 2506475dfafd7109dd1a71ef7789c8030cf57a44 Mon Sep 17 00:00:00 2001 From: Marco Gavelli Date: Tue, 17 Oct 2023 20:20:50 +0200 Subject: [PATCH] Fix: Fixed crash when dragging files from GMail --- src/Files.App/Utils/Storage/Operations/FilesystemHelpers.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Files.App/Utils/Storage/Operations/FilesystemHelpers.cs b/src/Files.App/Utils/Storage/Operations/FilesystemHelpers.cs index 9e574df7e537..c6f53d9a4b0b 100644 --- a/src/Files.App/Utils/Storage/Operations/FilesystemHelpers.cs +++ b/src/Files.App/Utils/Storage/Operations/FilesystemHelpers.cs @@ -780,7 +780,8 @@ public static async Task> GetDraggedStorageIte // https://learn.microsoft.com/windows/win32/shell/clipboard#cf_hdrop if (packageView.Contains("FileDrop")) { - var fileDropData = await packageView.GetDataAsync("FileDrop"); + var fileDropData = await SafetyExtensions.IgnoreExceptions( + () => packageView.GetDataAsync("FileDrop").AsTask()); if (fileDropData is IRandomAccessStream stream) { stream.Seek(0);