You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2016/02/15 09:47:25 UTC
[Bug 58838] Some cells are null when they aren't
https://bz.apache.org/bugzilla/show_bug.cgi?id=58838
--- Comment #10 from Dominik Stadler <do...@gmx.at> ---
initial attempt at a unit test for this:
@Test
public void testBug58838() throws IOException {
Workbook wb = HSSFTestDataSamples.openSampleWorkbook("58838.xls");
Sheet sheet = wb.getSheet("InitCharge");
Row row = sheet.getRow(1);
//int lastCol = CellReference.convertColStringToIndex("BC");
for (int c=0; c <= row.getLastCellNum(); c++) {
Cell cell = row.getCell(c);
if (cell != null) {
System.out.print(new CellReference(1, c).formatAsString() + ",
");
} else {
System.out.print("(" + new CellReference(1, c).formatAsString()
+ "), ");
}
}
wb.close();
}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org