Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetCellReferences()@XSSFTable can be buggy when table is single cell #1224

Closed
tohidemyname opened this issue Nov 27, 2023 · 0 comments · Fixed by #1283
Closed

SetCellReferences()@XSSFTable can be buggy when table is single cell #1224

tohidemyname opened this issue Nov 27, 2023 · 0 comments · Fixed by #1283
Labels

Comments

@tohidemyname
Copy link

NPOI Version

master

The code is as follows:
private void SetCellReferences()
{
...
String to = boundaries[1];
...}}

The above code line can be found in a fixed POI bug:

apache/poi@f12a414

The buggy code is identical:

private void setCellReferences() {
...
String to = boundaries[1];
...}}

The fixed code is as follows:
private void setCellReferences() {
...
String to = boundaries.length == 2 ? boundaries[1] : boundaries[0];

...}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant