Browse Source

Prevented little exception

Kenric Nugteren 11 tháng trước cách đây
mục cha
commit
27c959f1f1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;