Null handling for update callback

This commit is contained in:
Justin Swanson 2020-02-03 18:43:24 -06:00
parent 1b428cd03b
commit 9d0c5ef529

View File

@ -138,7 +138,7 @@ namespace Wabbajack
// Latch onto update events and update GUI
AutoUpdater.CheckForUpdateEvent += (args) =>
{
UpdateAvailable = args.IsUpdateAvailable;
UpdateAvailable = args?.IsUpdateAvailable ?? false;
};
// Trigger a query for updates soon after starting