From 47e6ca535e5bda34d7f73baea6629cc4c5e8ae39 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Mon, 5 Nov 2018 17:22:06 -0800 Subject: [PATCH] Guard against early exit on container exceptions --- MatterControlLib/Library/Providers/LibraryConfig.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/MatterControlLib/Library/Providers/LibraryConfig.cs b/MatterControlLib/Library/Providers/LibraryConfig.cs index ef3f0cca8..b5a172034 100644 --- a/MatterControlLib/Library/Providers/LibraryConfig.cs +++ b/MatterControlLib/Library/Providers/LibraryConfig.cs @@ -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)