Bug 66014

Summary: Stack overflow error while evaluating formula
Product: POI Reporter: Piotr Wilkin <piotr.wilkin>
Component: XSSFAssignee: POI Developers List <dev>
Status: NEEDINFO ---    
Severity: major    
Priority: P2    
Version: 5.2.2-FINAL   
Target Milestone: ---   
Hardware: PC   
OS: All   

Description Piotr Wilkin 2022-04-15 16:58:10 UTC
The code within XSSFCell::getCellFormula contains a call to getSheet().getFirstCellInArrayFormula(this) if the cell is part of an array formula group. However, if the first cell in an array formula group happens to be the current cell, this causes an infinite loop. In my sheet, this happened when the cell was in the range of an invalid formula.
Comment 1 PJ Fanning 2022-04-15 20:00:10 UTC
Can you provide a fuller example?