View | Details | Raw Unified | Return to bug 49258
Collapse All | Expand All

(-)20100506.orig/org/apache/poi/hssf/usermodel/HSSFFormulaEvaluator.java (+17 lines)
Line 49 Link Here
49
	private boolean _ignoreFormulaExceptions;
Line 179 Link Here
180
				if(_ignoreFormulaExceptions){
181
					try{
182
						return evaluateFormulaCellValue(cell);
183
					}
184
					catch(Throwable e){
185
						return new CellValue("");
186
					}
187
				}
Line 334 Link Here
343
	}
344
	
345
	/**
346
	 * Sets a mode - where exceptions during evaluation of formulas will be
347
	 * ignored
348
	 */
349
	public void setIgnoreFormulaException(){
350
		_ignoreFormulaExceptions = true;
(-)20100506.orig/org/apache/poi/ss/usermodel/FormulaEvaluator.java (+5 lines)
Line 98 Link Here
98
    
99
    /**
100
     * If an error occurs during formula evaluation - ignore exception and 
101
     */
102
    void setIgnoreFormulaException();
(-)20100506.orig/org/apache/poi/xssf/usermodel/XSSFFormulaEvaluator.java (-2 / +18 lines)
Line 49 Link Here
49
	private boolean _ignoreFormulaExceptions;	
Line 113 Link Here
113
				return evaluateFormulaCellValue(cell);
114
				if(_ignoreFormulaExceptions){
114
--
115
					try{
116
						return evaluateFormulaCellValue(cell);
117
					}
118
					catch(Throwable e){
119
						return new CellValue("");
120
					}
121
				}
122
				return evaluateFormulaCellValue(cell);				
Line 270 Link Here
279
	
280
	/**
281
	 * Sets a mode - where exceptions during evaluation of formulas will be
282
	 * ignored
283
	 */
284
	public void setIgnoreFormulaException(){
285
		_ignoreFormulaExceptions = true;
286
	}	

Return to bug 49258