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 fe3359bd79 refactor recurse check (#979)
fe3359bd79 is described below

commit fe3359bd79e6f9bafdfb34367d6fd84e597427ef
Author: PJ Fanning <[email protected]>
AuthorDate: Wed Dec 17 22:08:23 2025 +0100

    refactor recurse check (#979)
---
 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..af4c9d57a8 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]

Reply via email to