diff --git a/SoundSwitch/Framework/Profile/UI/ProfileTrayIconBuilder.cs b/SoundSwitch/Framework/Profile/UI/ProfileTrayIconBuilder.cs index a0a22311cf..766293a84f 100644 --- a/SoundSwitch/Framework/Profile/UI/ProfileTrayIconBuilder.cs +++ b/SoundSwitch/Framework/Profile/UI/ProfileTrayIconBuilder.cs @@ -22,7 +22,7 @@ public class ProfileTrayIconBuilder /// public IEnumerable GetMenuItems() { - return ProfileManager.Profiles + return (ProfileManager?.Profiles ?? new Profile[0]) .Where(profile => profile.Triggers.Any(trigger => trigger.Type == TriggerFactory.Enum.TrayMenu)) .Select(BuildMenuItem); }