MiniExcel icon indicating copy to clipboard operation
MiniExcel copied to clipboard

使用带合并列的模版出现异常

Open Sunyao-work opened this issue 3 years ago • 2 comments

使用的excel模版 2022-11-29_11-02

出现NullReferenceException 的异常 2022-11-29_11-00

查看源码发现异常原因如下 image

从代码层面看如果进入此步骤必然会出现NullReferenceException

Sunyao-work avatar Nov 29 '22 03:11 Sunyao-work

所以不明白此处为什么要用 != null ,没办法,手动改成 == null 跳出。重新编译生成dll

bluesadman avatar Dec 05 '24 12:12 bluesadman

@shps951023 it is a bit weird that to this day this is still a IEnumerableMercell != null check, logically it would make more sense to jump the loop when the value is null, especially because as it is now the section of code below gets never executed. Switching the check still makes all tests pass, but I'm not sure what that whole section is for in the first place, so I don't know how to proceed here

michelebastione avatar Apr 10 '25 17:04 michelebastione