Parcourir la source

Prevented little exception

Kenric Nugteren il y a 11 mois
Parent
commit
27c959f1f1
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      prs.desktop/Utils/CustomModuleUtils.cs

+ 1 - 1
prs.desktop/Utils/CustomModuleUtils.cs

@@ -39,7 +39,7 @@ namespace PRSDesktop
                 try
                 {
                     var doc = thumbs.FirstOrDefault(x => x.ID.Equals(module.Thumbnail.ID));
-                    if (doc != null)
+                    if (doc != null && doc.Data.Length > 0)
                     {
                         var bmp = (new ImageConverter().ConvertFrom(doc.Data) as Bitmap)!;
                         image = bmp;