diff options
author | PJ Fanning <fanningpj@apache.org> | 2023-02-14 13:51:52 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2023-02-14 13:51:52 +0000 |
commit | adcf7bf53301a9ba1abe7ce67c73e256a4260844 (patch) | |
tree | 0dae163b9c553f931841e0a47f05a417489263b2 /poi-ooxml/src/main/java | |
parent | 660b90062ded807bd4bf50cb419457baa1acc595 (diff) | |
download | poi-adcf7bf53301a9ba1abe7ce67c73e256a4260844.tar.gz poi-adcf7bf53301a9ba1abe7ce67c73e256a4260844.zip |
add util code to rethrow fatal exceptions
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1907645 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-ooxml/src/main/java')
-rw-r--r-- | poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java | 4 |
1 files changed, 4 insertions, 0 deletions
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 13c1e7848c..42e27b4c97 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 @@ -50,6 +50,7 @@ import org.apache.poi.ss.util.CellRangeAddress; import org.apache.poi.ss.util.CellReference; import org.apache.poi.ss.util.CellUtil; import org.apache.poi.util.Beta; +import org.apache.poi.util.ExceptionUtil; import org.apache.poi.util.Internal; import org.apache.poi.util.LocaleUtil; import org.apache.poi.xssf.model.CalculationChain; @@ -1164,6 +1165,9 @@ public final class XSSFCell extends CellBase { RichTextString rt = _sharedStringSource.getItemAt(sstIndex); return rt.getString(); } catch (Throwable t) { + if (ExceptionUtil.isFatal(t)) { + ExceptionUtil.rethrow(t); + } return ""; } case NUMERIC: |