mirror of
https://github.com/apache/poi.git
synced 2025-03-05 00:19:07 +00:00
[bug-69529] relax exception check
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1922987 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b0515e7493
commit
4ca89e156f
@ -394,7 +394,7 @@ public class XSSFSheetXMLHandler extends DefaultHandler {
|
||||
// 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 DefaultHandler {
|
||||
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user