diff --git a/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs b/Ryujinx.Ava/UI/Helpers/ContentDialogHelper.cs index f4334b5f..8f0c670e 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() {