From 9a7e3b6e55f59343c1422a2b0c637dd241901f90 Mon Sep 17 00:00:00 2001 From: Travis Nickles Date: Tue, 24 Mar 2020 17:07:48 -0500 Subject: [PATCH] Added null check --- DS4Windows/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DS4Windows/App.xaml.cs b/DS4Windows/App.xaml.cs index c3a0e12..dd75997 100644 --- a/DS4Windows/App.xaml.cs +++ b/DS4Windows/App.xaml.cs @@ -188,7 +188,7 @@ namespace DS4WinWPF { Dispatcher.Invoke(() => { - rootHub.PrepareAbort(); + rootHub?.PrepareAbort(); CleanShutdown(); }); }