mirror of https://github.com/apache/poi.git
Add a disabled unit test for bug #56420
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1607661 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4c8504965f
commit
054519db29
|
@ -1566,6 +1566,23 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
|||
bug53798Work(wb, xlsOutput);
|
||||
}
|
||||
|
||||
/**
|
||||
* SUMIF was throwing a NPE on some formulas
|
||||
*/
|
||||
@Test
|
||||
@Ignore("This bug is still to be fixed")
|
||||
public void testBug56420SumIfNPE() throws Exception {
|
||||
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("56420.xlsx");
|
||||
|
||||
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
|
||||
|
||||
Sheet sheet = wb.getSheetAt(0);
|
||||
Row r = sheet.getRow(2);
|
||||
Cell c = r.getCell(2);
|
||||
assertEquals("SUMIF($A$1:$A$4,A3,$B$1:$B$4)", c.getCellFormula());
|
||||
evaluator.evaluateInCell(c);
|
||||
}
|
||||
|
||||
private void bug53798Work(Workbook wb, File xlsOutput) throws IOException {
|
||||
Sheet testSheet = wb.getSheetAt(0);
|
||||
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue