Skip to content

Commit 94d9336

Browse files
committed
Fix for critical error in AppUpdater
1 parent 42c9fe5 commit 94d9336

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

AppUpdater/MUVersion.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,13 @@ public static bool Init()
3333
Task<IReadOnlyList<Release>> releases = client.Repository.Release.GetAll("UAVXP", "MedocUpdates");
3434
if(releases == null)
3535
{
36-
Log.Write(LogLevel.EXPERT, true, "AppUpdater.MUVersion: Cannot get a release list from the GIthub. Probably Internet was down");
36+
Log.Write(LogLevel.EXPERT, true, "AppUpdater.MUVersion: Cannot get a release list from the Github. Probably Internet was down");
37+
return false;
38+
}
39+
40+
if(releases.Result == null)
41+
{
42+
Log.Write(LogLevel.EXPERT, true, "AppUpdater.MUVersion: Probably, something wrong with the Github. Try to check for updates again later");
3743
return false;
3844
}
3945

0 commit comments

Comments
 (0)