From 1bc784922c0e2fc5e076a3def51cc2417de06e14 Mon Sep 17 00:00:00 2001 From: Drew Naylor Date: Thu, 8 Oct 2020 02:31:48 -0400 Subject: [PATCH] Make sure the manifest path cell isn't Nothing before getting the... 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. --- guinget/MainWindow.vb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/guinget/MainWindow.vb b/guinget/MainWindow.vb index e70762c9..391937a9 100644 --- a/guinget/MainWindow.vb +++ b/guinget/MainWindow.vb @@ -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.