Guard against early exit on container exceptions

This commit is contained in:
John Lewin 2018-11-05 17:22:06 -08:00
parent 7da9a9d905
commit 47e6ca535e

View file

@ -223,8 +223,14 @@ namespace MatterHackers.MatterControl.Library
if (thumbnail == null && libraryContainer != null)
{
// Ask the container - allows the container to provide its own interpretation of the item thumbnail
thumbnail = await libraryContainer.GetThumbnail(libraryItem, thumbWidth, thumbHeight);
try
{
// Ask the container - allows the container to provide its own interpretation of the item thumbnail
thumbnail = await libraryContainer.GetThumbnail(libraryItem, thumbWidth, thumbHeight);
}
catch
{
}
}
if (thumbnail == null && libraryItem is IThumbnail)