DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=43008>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=43008 [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|HSSFCell.setColNum |HSSFCell.setCellNum() works | |incorrectly. ------- Additional Comments From [EMAIL PROTECTED] 2007-08-01 06:25 ------- HSSFWorkbook workbook = new HSSFWorkbook(); HSSFSheet sheet = workbook.createSheet(); HSSFRow row = sheet.createRow((short) 0); HSSFCell cell = row.createCell((short) 0); cell.setCellNum((short) 1); // I think that I have here the came cell as by cell reference // but cell1 is null reference HSSFCell cell1 = row.getCell((short) 1); short cellNum = cell1.getCellNum(); Run this code. We've got NPE but I think that row.getCell((short) 1); operator should return created cell because we chaged cell number (that means "column" number) and now created cell number is 1! row.getCell((short) 0) should return null now. in cell.setCellNum((short) 1); operator. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
