Author: fanningpj
Date: Wed Jan 8 11:56:11 2025
New Revision: 1922987
URL: http://svn.apache.org/viewvc?rev=1922987&view=rev
Log:
[bug-69529] relax exception check
Modified:
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
Modified:
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java?rev=1922987&r1=1922986&r2=1922987&view=diff
==============================================================================
---
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
(original)
+++
poi/trunk/poi-ooxml/src/main/java/org/apache/poi/xssf/eventusermodel/XSSFSheetXMLHandler.java
Wed Jan 8 11:56:11 2025
@@ -394,7 +394,7 @@ public class XSSFSheetXMLHandler extends
// Try to use the value as a formattable number
double d = Double.parseDouble(fv);
thisStr = formatter.formatRawCellContents(d,
this.formatIndex, this.formatString);
- } catch (NumberFormatException e) {
+ } catch (Exception e) {
// Formula is a String result not a Numeric one
LOG.atInfo().log(
"Error formatting cell '{}' - will use
its raw value instead (format '{}')",
@@ -434,7 +434,7 @@ public class XSSFSheetXMLHandler extends
try {
thisStr = formatter.formatRawCellContents(
Double.parseDouble(n), this.formatIndex,
this.formatString);
- } catch (NumberFormatException e) {
+ } catch (Exception e) {
LOG.atInfo().log(
"Error formatting cell '{}' - will use its
raw value instead (format '{}')",
cellRef,
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]