Add null reference guard, upgrade failing Win32.Registry assembly
This commit is contained in:
parent
9d5a8c22bd
commit
813322a9b6
2 changed files with 6 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue