diff --git a/src/ReactiveUI/Platforms/uap/SingleWindowDispatcherScheduler.cs b/src/ReactiveUI/Platforms/uap/SingleWindowDispatcherScheduler.cs index 933b5857ac..da842f0538 100644 --- a/src/ReactiveUI/Platforms/uap/SingleWindowDispatcherScheduler.cs +++ b/src/ReactiveUI/Platforms/uap/SingleWindowDispatcherScheduler.cs @@ -150,7 +150,14 @@ void RaiseToDispatcher(object sender, object e) private IDisposable ScheduleOnDispatcherNow(TState state, Func action) { - Interlocked.CompareExchange(ref _dispatcher, CoreApplication.Views.FirstOrDefault()?.Dispatcher, null); + try + { + Interlocked.CompareExchange(ref _dispatcher, CoreApplication.Views.FirstOrDefault()?.Dispatcher, null); + } + catch (Exception ex) + { + // Ignore + } if (_dispatcher == null || _dispatcher.HasThreadAccess) {