Skip to content

Commit

Permalink
Make sure the manifest path cell isn't Nothing before getting the...
Browse files Browse the repository at this point in the history
description. If it is, change the description. This should only be a problem if the database is broken, like it is (or was, if it's fixed by this point) right now.
  • Loading branch information
DrewNaylor committed Oct 8, 2020
1 parent 395320a commit 1bc7849
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion guinget/MainWindow.vb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,13 @@ Public Class aaformMainWindow
' Find the manifest and get its description.
PackageRow.Cells.Item(7).Value = Await PackageListTools.FindManifestByVersionAndId(PackageRow.Cells.Item(2).Value.ToString, PackageRow.Cells.Item(4).Value.ToString)

PackageRow.Cells.Item(6).Value = Await PackageTools.GetPackageInfoFromYamlAsync(PackageRow.Cells.Item(7).Value.ToString, "Description")
' Ensure the manifest path cell isn't nothing.
If PackageRow.Cells.Item(7).Value IsNot Nothing Then
PackageRow.Cells.Item(6).Value = Await PackageTools.GetPackageInfoFromYamlAsync(PackageRow.Cells.Item(7).Value.ToString, "Description")
Else
' If the value in the manifest path cell is nothing, change the description.
PackageRow.Cells.Item(6).Value = "(Couldn't find manifest)"
End If
' Make the progress bar progress.
aaformMainWindow.toolstripprogressbarLoadingPackages.Value = PackageRow.Index
' Update the statusbar to show the current info.
Expand Down

0 comments on commit 1bc7849

Please sign in to comment.