aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-02-22 09:13:50 +0100
committerGitHub <noreply@github.com>2023-02-22 09:13:50 +0100
commit1f8d66db7c91a3242629edca84f4df9c17a832ef (patch)
tree8e434ed83d7c48e09b7945ba82bc68cdb63992b6
parentc3a5716a95ea93cba9488189fb36d594db5083bc (diff)
Ava: Fix Updater crashing on Linux (#4457)1.1.633
-rw-r--r--Ryujinx.Ava/Modules/Updater/Updater.cs5
1 files changed, 5 insertions, 0 deletions
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);
});
}