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 2007/08/01 15:25:33 UTC
DO NOT REPLY [Bug 43008] - HSSFCell.setCellNum() works incorrectly.
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
Bina@math.spbu.ru changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|HSSFCell.setColNum |HSSFCell.setCellNum() works
| |incorrectly.
------- Additional Comments From Bina@math.spbu.ru 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: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org