Quantcast
Channel: NPOI
Viewing all articles
Browse latest Browse all 1621

Created Unassigned: Shift Rows Throws Null Reference Exception when sheet has comments. [13894]

$
0
0
I am trying delete a row from my excel sheet which has comments on some of the cells. When calling shift rows to do this I get a null reference exceptions which appears to be stemming from the update of the comments references. Below is a stacktrace. This makes the library effectively unable to delete rows which seems like a pretty significant issue.

Object reference not set to an instance of an object.
at NPOI.XSSF.Model.CommentsTable.RecreateReference()
at NPOI.XSSF.UserModel.XSSFSheet.ShiftRows(Int32 startRow, Int32 endRow, Int32 n, Boolean copyRowHeight, Boolean reSetOriginalRowHeight)
at NPOI.XSSF.UserModel.XSSFSheet.ShiftRows(Int32 startRow, Int32 endRow, Int32 n)
at UserQuery.EmpReportGenerator.ProcessSheetData(ISheet sheet, List`1 data)
at UserQuery.EmpReportGenerator.Generate()
at UserQuery.Main()

Viewing all articles
Browse latest Browse all 1621

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>