diff --git a/Source/Controls/ErrorBox/ErrorBox.axaml.cs b/Source/Controls/ErrorBox/ErrorBox.axaml.cs index a4e27fc..058b9dc 100644 --- a/Source/Controls/ErrorBox/ErrorBox.axaml.cs +++ b/Source/Controls/ErrorBox/ErrorBox.axaml.cs @@ -35,6 +35,6 @@ void OnButtonCloseClicked(object? sender, RoutedEventArgs e) void OnButtonCopyClicked(object? sender, RoutedEventArgs e) { - _ = Application.Current.Clipboard.SetTextAsync(Message); + _ = Application.Current?.Clipboard?.SetTextAsync(Message); } } \ No newline at end of file diff --git a/Source/Controls/UserProperties/UserPropertiesView.axaml b/Source/Controls/UserProperties/UserPropertiesView.axaml index 8a1ecf9..bd32f93 100644 --- a/Source/Controls/UserProperties/UserPropertiesView.axaml +++ b/Source/Controls/UserProperties/UserPropertiesView.axaml @@ -18,7 +18,7 @@ Orientation="Horizontal">