From 1f8d66db7c91a3242629edca84f4df9c17a832ef Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Wed, 22 Feb 2023 09:13:50 +0100 Subject: [PATCH] Ava: Fix Updater crashing on Linux (#4457) --- Ryujinx.Ava/Modules/Updater/Updater.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Ryujinx.Ava/Modules/Updater/Updater.cs b/Ryujinx.Ava/Modules/Updater/Updater.cs index b476bb85..511e273e 100644 --- a/Ryujinx.Ava/Modules/Updater/Updater.cs +++ b/Ryujinx.Ava/Modules/Updater/Updater.cs @@ -506,6 +506,11 @@ namespace Ryujinx.Modules Dispatcher.UIThread.Post(() => { + if (tarEntry is null) + { + return; + } + taskDialog.SetProgressBarState(GetPercentage(tarEntry.Size, inStream.Length), TaskDialogProgressState.Normal); }); }