https://issues.apache.org/bugzilla/show_bug.cgi?id=52130
Yegor Kozlov <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- OS/Version| |All --- Comment #3 from Yegor Kozlov <[email protected]> 2011-11-07 09:55:09 UTC --- Alex, The provided unit test does not demonstrate the problem. I'm testing with trunk and all tests pass. However, I was able to reproduce a NPE by setting a null string in a blank cell: public void test4() { Cell[] cells=new Cell[] {new HSSFWorkbook().createSheet("test").createRow(0).createCell(0), new XSSFWorkbook().createSheet("test").createRow(0).createCell(0), new SXSSFWorkbook().createSheet("test").createRow(0).createCell(0)}; for(int i=0;i<cells.length;i++) { cells[i].setCellValue((String)null); assertEquals("i="+i,"",cells[i].getStringCellValue()); } } This test indeed fails for i=2 and the provided patch fixes it. Was it your case? Yegor -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
