mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
[bz-69905] check cell before recursing (#978)
This commit is contained in:
parent
2f464f21cf
commit
6e152a71a6
@ -410,7 +410,9 @@ 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 */
|
/* 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()) {
|
if (f == null || f.getStringValue().isEmpty()) {
|
||||||
XSSFCell cell = getSheet().getFirstCellInArrayFormula(this);
|
XSSFCell cell = getSheet().getFirstCellInArrayFormula(this);
|
||||||
return cell.getCellFormula(fpb);
|
if (cell != this) {
|
||||||
|
return cell.getCellFormula(fpb);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (f == null) {
|
if (f == null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user