Add null reference guard, upgrade failing Win32.Registry assembly

This commit is contained in:
John Lewin 2019-12-14 12:22:04 -08:00
parent 9d5a8c22bd
commit 813322a9b6
2 changed files with 6 additions and 2 deletions

View file

@ -198,7 +198,11 @@ namespace MatterHackers.MatterControl.Library.Widgets.HardwarePage
foreach (var item in product.ProductListing.AddOns)
{
var icon = new ImageBuffer(80, 0);
WebCache.RetrieveImageAsync(icon, item.FeaturedImage.ImageUrl, scaleToImageX: true);
if (item.FeaturedImage != null)
{
WebCache.RetrieveImageAsync(icon, item.FeaturedImage.ImageUrl, scaleToImageX: true);
}
var addOnRow = new AddOnRow(item.AddOnTitle, theme, null, icon)
{