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 2003/05/20 11:40:39 UTC

DO NOT REPLY [Bug 20052] New: - Bug with addCell and getCell

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20052>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20052

Bug with addCell and getCell

           Summary: Bug with addCell and getCell
           Product: POI
           Version: 2.0-dev
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: HSSF
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: msebire@axemble.com


Hello,
I have a problem with the function getCell and addCell. When my first column 
which is indexes is the column 3 and the last is the column 5 for example, I 
try to retrieve their values. I use the function getCell(0) to retrieve the 
value of the column 3 to retrieve the value of the column 4. The problem is 
that this function retrieve a null value.

I have tried to do my own modification but I don't know if it's correct...

In the function addCell, I have replace 
    cells.put(new Integer(cell.getCellNum()), cell);
by
    cells.put(new Integer(cells.size()), cell);
with this patch the getCell function runs correctly.