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 6762b5a9fb Revert "Update XSSFCell.java"
6762b5a9fb is described below

commit 6762b5a9fb7cf72853807dffb327b3b61296c3a3
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Dec 17 21:49:08 2025 +0100

    Revert "Update XSSFCell.java"
    
    This reverts commit 037a001719d3beb8f31cb4022dd34cd28a318c61.
---
 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 0c355a0934..a9062ff7bf 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 (equals(cell)) {
+                if (cell != this) {
                     return cell.getCellFormula(fpb);
                 }
             }


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to