Bug 66014 - Stack overflow error while evaluating formula
Summary: Stack overflow error while evaluating formula
Status: NEEDINFO
Alias: None
Product: POI
Classification: Unclassified
Component: XSSF (show other bugs)
Version: 5.2.2-FINAL
Hardware: PC All
: P2 major (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-15 16:58 UTC by Piotr Wilkin
Modified: 2022-04-15 20:00 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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?