Skip to content

Commit

Permalink
chg - Fixed update manager nullables
Browse files Browse the repository at this point in the history
---

Type: chg
Breaking: False
Doc Required: False
Backport Required: False
Part: 1/1
  • Loading branch information
AptiviCEO committed Sep 6, 2024
1 parent f48731a commit c6b0d46
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions public/Nitrocid/Kernel/Starting/KernelStageActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ internal static void Stage02KernelUpdates()
UpdateManager.CheckKernelUpdates();
#if SPECIFIERREL
string upgradedPath = PathsManagement.TempPath + "/.upgraded";
if (!Checking.FileExists(upgradedPath) || Reading.ReadContents(upgradedPath)[0] != KernelMain.Version.ToString())
if (!Checking.FileExists(upgradedPath) || Reading.ReadContents(upgradedPath)[0] != KernelMain.Version?.ToString())
{
Writing.WriteContentsText(upgradedPath, KernelMain.Version.ToString());
Writing.WriteContentsText(upgradedPath, KernelMain.Version?.ToString() ?? "0.0.0.0");
SplashManager.BeginSplashOut(SplashManager.CurrentSplashContext);
string changes = UpdateManager.GetVersionChangelogs();
InfoBoxButtonsColor.WriteInfoBoxButtons([
Expand Down
2 changes: 1 addition & 1 deletion public/Nitrocid/Kernel/Updates/UpdateManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public static void CheckKernelUpdates()
var AvailableUpdate = FetchBinaryArchive();
if (AvailableUpdate is not null)
{
if (!AvailableUpdate.Updated)
if (!AvailableUpdate.Updated && AvailableUpdate.UpdateVersion is not null)
{
SplashReport.ReportProgress(Translate.DoTranslation("Found new version: "), 10);
SplashReport.ReportProgress(AvailableUpdate.UpdateVersion.ToString(), 10);
Expand Down

0 comments on commit c6b0d46

Please sign in to comment.