diff --git a/SoundSwitch/Program.cs b/SoundSwitch/Program.cs index 165b188eb6..25a46b8794 100644 --- a/SoundSwitch/Program.cs +++ b/SoundSwitch/Program.cs @@ -223,7 +223,8 @@ private static void HandleException(Exception exception) Would you like to share more information with the developers?"; var result = DialogResult.None; - _synchronizationContext.Send(state => + var syncContext = _synchronizationContext ?? SynchronizationContext.Current; + syncContext.Send(state => { result = MessageBox.Show(message, $@"{Application.ProductName} crashed...", MessageBoxButtons.YesNo, MessageBoxIcon.Error);