From 94d9336937e8293c60d063f7d08dae16beaeb234 Mon Sep 17 00:00:00 2001 From: UAVXP Date: Mon, 11 Nov 2019 11:10:55 +0200 Subject: [PATCH] Fix for critical error in AppUpdater --- AppUpdater/MUVersion.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/AppUpdater/MUVersion.cs b/AppUpdater/MUVersion.cs index 25165ce..c81660f 100644 --- a/AppUpdater/MUVersion.cs +++ b/AppUpdater/MUVersion.cs @@ -33,7 +33,13 @@ public static bool Init() Task> releases = client.Repository.Release.GetAll("UAVXP", "MedocUpdates"); if(releases == null) { - Log.Write(LogLevel.EXPERT, true, "AppUpdater.MUVersion: Cannot get a release list from the GIthub. Probably Internet was down"); + Log.Write(LogLevel.EXPERT, true, "AppUpdater.MUVersion: Cannot get a release list from the Github. Probably Internet was down"); + return false; + } + + if(releases.Result == null) + { + Log.Write(LogLevel.EXPERT, true, "AppUpdater.MUVersion: Probably, something wrong with the Github. Try to check for updates again later"); return false; }