Author: fanningpj
Date: Tue Feb 14 15:12:18 2023
New Revision: 1907656

URL: http://svn.apache.org/viewvc?rev=1907656&view=rev
Log:
safety check on throwable catch

Modified:
    
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java

Modified: 
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java?rev=1907656&r1=1907655&r2=1907656&view=diff
==============================================================================
--- 
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java 
(original)
+++ 
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/usermodel/XSSFCell.java 
Tue Feb 14 15:12:18 2023
@@ -336,7 +336,10 @@ public final class XSSFCell extends Cell
                 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 {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to