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 2015/04/28 23:53:13 UTC

[Bug 57869] getRow() returns null even when there is data

https://bz.apache.org/bugzilla/show_bug.cgi?id=57869

Nick Burch <ap...@gagravarr.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED
                 OS|                            |All

--- Comment #1 from Nick Burch <ap...@gagravarr.org> ---
Rows in POI are 0-based not 1-based, so for row 15 in Excel, you need to call
getRow(14)

Additionally, fetching sheet by name might be safer, in case there are hidden
sheets before the one you think is the first

Otherwise, if that isn't the problem, please re-open and upload a file that
shows the problem, along with a small junit unit test that shows it, and we'll
take a look

-- 
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