Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用@group标签模板,SaveAsByTemplate方法抛出空指针异常 #665

Open
1 of 4 tasks
nelson820125 opened this issue Aug 28, 2024 · 1 comment
Open
1 of 4 tasks

Comments

@nelson820125
Copy link

nelson820125 commented Aug 28, 2024

Excel Type

  • XLSX
  • XLSM
  • CSV
  • OTHER

Upload Excel File

Please attach your issue file by dragging or droppng, selecting or pasting them.

下面这个文件的代码存在异常,下载源码使用@group标签的模板,然后导入List<>对象,抛出了空指针异常
fb567c598b49a3fd40641c9a343ca86

MiniExcel Version

1.34.1

Description

这里这个IList为空,导致异常

@nelson820125
Copy link
Author

类:ExcelOpenXmlTemplate
方法:private void WriteSheetXml(Stream stream, XmlDocument doc, XmlNode sheetData, bool mergeCells = false)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant