diff --git a/src/Artemis.UI.Shared/Controls/ProfileConfigurationIcon.axaml.cs b/src/Artemis.UI.Shared/Controls/ProfileConfigurationIcon.axaml.cs index 9ad64cbf8..1a8e91334 100644 --- a/src/Artemis.UI.Shared/Controls/ProfileConfigurationIcon.axaml.cs +++ b/src/Artemis.UI.Shared/Controls/ProfileConfigurationIcon.axaml.cs @@ -50,6 +50,9 @@ public partial class ProfileConfigurationIcon : UserControl, IDisposable { Dispatcher.UIThread.Post(() => { + if (ConfigurationIcon is null) + return; + Stream? stream = ConfigurationIcon.GetIconStream(); if (stream == null) Content = new MaterialIcon {Kind = MaterialIconKind.QuestionMark};