This is an automated email from the ASF dual-hosted git repository.
fanningpj pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/poi.git
The following commit(s) were added to refs/heads/trunk by this push:
new 037a001719 Update XSSFCell.java
037a001719 is described below
commit 037a001719d3beb8f31cb4022dd34cd28a318c61
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Dec 17 21:31:06 2025 +0100
Update XSSFCell.java
---
poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
index a9062ff7bf..0c355a0934 100644
--- a/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
+++ b/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
@@ -410,7 +410,7 @@ public final class XSSFCell extends CellBase {
/* In an excel generated array formula, the formula property might
be set, but the string is empty in related cells */
if (f == null || f.getStringValue().isEmpty()) {
XSSFCell cell = getSheet().getFirstCellInArrayFormula(this);
- if (cell != this) {
+ if (equals(cell)) {
return cell.getCellFormula(fpb);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]