瀏覽代碼

Prevented little exception

Kenric Nugteren 11 月之前
父節點
當前提交
27c959f1f1
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;