You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can be reproduced with this example if you fill the sheet with data and then try to add the table on top of filled data.
It does not happen if we first create the table, then populate cells with data, then update the tables referenced area to match the contents.
It also does not happen when the table is created with CT_Table.
Unhandled exception. System.NullReferenceException: Object reference not set to an instance of an object.
at NPOI.XSSF.UserModel.XSSFTable.UpdateHeaders()
at NPOI.XSSF.UserModel.XSSFTable.SetCellRef(AreaReference refs)
at NPOI.XSSF.UserModel.XSSFTable.SetCellReferences(AreaReference refs)
at CreateTableInXlsx.Program.Main(String[] args)
Update:
Here's the exact place it fails:
The text was updated successfully, but these errors were encountered:
superrnovae
changed the title
XSSFTable SetCellReferences() throws an exception if AreaReference contains data.
XSSFTable SetCellReferences() fails with exception if AreaReference contains data.
Feb 25, 2023
superrnovae
changed the title
XSSFTable SetCellReferences() fails with exception if AreaReference contains data.
XSSFTable SetCellReferences() fails with exception if the sheet is not empty
Feb 25, 2023
superrnovae
changed the title
XSSFTable SetCellReferences() fails with exception if the sheet is not empty
XSSFTable SetCellReferences() fails with exception if the referenced area is not empty
Feb 26, 2023
Can be reproduced with this example if you fill the sheet with data and then try to add the table on top of filled data.
It does not happen if we first create the table, then populate cells with data, then update the tables referenced area to match the contents.
It also does not happen when the table is created with CT_Table.
Update:
Here's the exact place it fails:
The text was updated successfully, but these errors were encountered: