修改导表报错
continuous-integration/drone/push Build encountered an error Details

IRC_NewDev
hang 2024-12-11 13:26:59 +08:00
parent 125846e6b2
commit a7441c8c78
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ public static class ExcelExportHelper
foreach (var key in dic.Keys)
{
//是数组 那么找到对应的属性 进行翻译
if (dic[key].GetType().GetInterfaces().Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IList<>)))
if (dic[key]!=null && dic[key].GetType().GetInterfaces().Any(i => i.IsGenericType && i.GetGenericTypeDefinition() == typeof(IList<>)))
{
var newObjList = new List<object>();