Skip to content

Comments

sheetToArrayOfStructs throws array-index-out-of-bounds when rows have trailing blank cells#447

Merged
cfsimplicity merged 1 commit intocfsimplicity:developfrom
aliaspooryorik:develop
Feb 12, 2026
Merged

sheetToArrayOfStructs throws array-index-out-of-bounds when rows have trailing blank cells#447
cfsimplicity merged 1 commit intocfsimplicity:developfrom
aliaspooryorik:develop

Conversation

@aliaspooryorik
Copy link
Contributor

When reading a spreadsheet with format="arrayOfStructs" if a data row has blank cells in the trailing columns, POI omits those cells from the row, producing a row array shorter than the header array. sheetToArrayOfStructs then throws an array-index-out-of-bounds error because it assumes every row has the same number of elements as the column headers.

See: #446

…se cells from the row, producing a row array shorter than the header array.

When elements are less than expected columns fill with blanks
@cfsimplicity cfsimplicity merged commit 0710f5a into cfsimplicity:develop Feb 12, 2026
5 checks passed
@cfsimplicity
Copy link
Owner

Thanks John, much appreciated.

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

Successfully merging this pull request may close these issues.

2 participants