safety check on throwable catch

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907656 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2023-02-14 15:12:18 +00:00
parent 54fc06be81
commit e431ec35c3
1 changed files with 4 additions and 1 deletions

View File

@ -336,7 +336,10 @@ public final class XSSFCell extends CellBase {
try {
int idx = Integer.parseInt(_cell.getV());
rt = (XSSFRichTextString)_sharedStringSource.getItemAt(idx);
} catch(Throwable t) {
} catch (Throwable t) {
if (ExceptionUtil.isFatal(t)) {
ExceptionUtil.rethrow(t);
}
rt = new XSSFRichTextString("");
}
} else {