Index: Application/Ringtoets/src/Application.Ringtoets/App.xaml.cs =================================================================== diff -u -r7f759fbabca9c41e75d229269f1b21581b373b5f -re3f9dffa91a0def0b6e6bc7dfabef74cc64745c5 --- Application/Ringtoets/src/Application.Ringtoets/App.xaml.cs (.../App.xaml.cs) (revision 7f759fbabca9c41e75d229269f1b21581b373b5f) +++ Application/Ringtoets/src/Application.Ringtoets/App.xaml.cs (.../App.xaml.cs) (revision e3f9dffa91a0def0b6e6bc7dfabef74cc64745c5) @@ -273,15 +273,8 @@ private static void AppDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { - Exception exception; + Exception exception = e.ExceptionObject as Exception ?? new Exception(Core.Common.Gui.Properties.Resources.App_AppDomain_UnhandledException_Unknown_exception_); - exception = e.ExceptionObject as Exception; - - if (exception == null) - { - exception = new Exception(Core.Common.Gui.Properties.Resources.App_AppDomain_UnhandledException_Unknown_exception_); - } - HandleExceptionOnMainThread(exception, e.IsTerminating); }