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()
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()