From 3098b22ba5dfada448f44ee8106e16598247feda Mon Sep 17 00:00:00 2001 From: Vitalii Orazov Date: Mon, 17 Jul 2023 22:08:29 +0300 Subject: [PATCH] x11. fix nullref --- samples/ControlCatalog/Pages/ClipboardPage.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/ControlCatalog/Pages/ClipboardPage.xaml.cs b/samples/ControlCatalog/Pages/ClipboardPage.xaml.cs index 5fc6d175ea..c96318507b 100644 --- a/samples/ControlCatalog/Pages/ClipboardPage.xaml.cs +++ b/samples/ControlCatalog/Pages/ClipboardPage.xaml.cs @@ -154,7 +154,7 @@ namespace ControlCatalog.Pages if (TopLevel.GetTopLevel(this)?.Clipboard is { } clipboard) { var formats = await clipboard.GetFormatsAsync(); - ClipboardContent.Text = string.Join(Environment.NewLine, formats); + ClipboardContent.Text = formats != null ? string.Join(Environment.NewLine, formats) : string.Empty; } }