Fix ArgumentNullException exception when cancelling importing a wallet
MODIFY
WalletWasabi.Fluent/Helpers/FileDialogHelper.cs
WalletWasabi.Fluent/Helpers/FileDialogHelper.cs
@@ -48,7 +48,7 @@ namespace WalletWasabi.Fluent.Helpers
var window = ((IClassicDesktopStyleApplicationLifetime)Application.Current.ApplicationLifetime).MainWindow;
var selected = await ofd.ShowAsync(window);
- return selected.FirstOrDefault();
+ return selected?.FirstOrDefault();
}
private static async Task<string?> GetDialogResultAsync(SaveFileDialog sfd)

Fix ArgumentNullException exception when cancelling importing a wallet