ASF Bugzilla – Attachment 25410 Details for
Bug 49258
Not existing external links cause crash
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch screens the exceptions thrown due to errors during evaluation of forumas
patch (text/plain), 1.54 KB, created by
Vasili
on 2010-05-06 15:22:44 UTC
(
hide
)
Description:
patch screens the exceptions thrown due to errors during evaluation of forumas
Filename:
MIME Type:
Creator:
Vasili
Created:
2010-05-06 15:22:44 UTC
Size:
1.54 KB
patch
obsolete
>diff -r 20100506.orig/org/apache/poi/hssf/usermodel/HSSFFormulaEvaluator.java 20100506/org/apache/poi/hssf/usermodel/HSSFFormulaEvaluator.java >48a49 >> private boolean _ignoreFormulaExceptions; >178a180,187 >> if(_ignoreFormulaExceptions){ >> try{ >> return evaluateFormulaCellValue(cell); >> } >> catch(Throwable e){ >> return new CellValue(""); >> } >> } >333a343,350 >> } >> >> /** >> * Sets a mode - where exceptions during evaluation of formulas will be >> * ignored >> */ >> public void setIgnoreFormulaException(){ >> _ignoreFormulaExceptions = true; >diff -r 20100506.orig/org/apache/poi/ss/usermodel/FormulaEvaluator.java 20100506/org/apache/poi/ss/usermodel/FormulaEvaluator.java >97a98,102 >> >> /** >> * If an error occurs during formula evaluation - ignore exception and >> */ >> void setIgnoreFormulaException(); >diff -r 20100506.orig/org/apache/poi/xssf/usermodel/XSSFFormulaEvaluator.java 20100506/org/apache/poi/xssf/usermodel/XSSFFormulaEvaluator.java >48a49 >> private boolean _ignoreFormulaExceptions; >113c114,122 >< return evaluateFormulaCellValue(cell); >--- >> if(_ignoreFormulaExceptions){ >> try{ >> return evaluateFormulaCellValue(cell); >> } >> catch(Throwable e){ >> return new CellValue(""); >> } >> } >> return evaluateFormulaCellValue(cell); >269a279,286 >> >> /** >> * Sets a mode - where exceptions during evaluation of formulas will be >> * ignored >> */ >> public void setIgnoreFormulaException(){ >> _ignoreFormulaExceptions = true; >> }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 49258
: 25410