From 3e455a90a1137bad4abad5d5a4ca15476bb088e8 Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Tue, 10 Jan 2023 09:22:25 +0100 Subject: [PATCH] Ava: Add missing null check to ContentDialogHelper.ShowAsync() (#4248) * ava: Add missing null check to ContentDialogHelper.ShowAsync() * Replace "is not" with != operator Co-authored-by: gdkchan Co-authored-by: gdkchan --- Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs b/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs index f4334b5f6..8f0c670ea 100644 --- a/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs +++ b/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs @@ -349,7 +349,7 @@ namespace Ryujinx.Ava.UI.Helpers Window parent = GetMainWindow(); - if (parent.IsActive && parent is MainWindow window && window.ViewModel.IsGameRunning) + if (parent != null && parent.IsActive && parent is MainWindow window && window.ViewModel.IsGameRunning) { contentDialogOverlayWindow = new() {