You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by Eric Pugh <ep...@upstate.com> on 2003/09/16 14:43:29 UTC

Possible Bug HSSFSheet.getRow(row)

Hi all,

I am trying to finish cleanup my testcase for the contrib HSSFCellUtil to
submit, and they are failing due to this call:

HSSFRow row = sheet.getRow( (short) rowCounter );.  If the row doesn't
exist, then I get an exception.  However, according to the spec, if
the row doesn't exist, then it should return null.  It fails because
HSSFSheet.getRow() calls

HSSFRow retval = new HSSFRow(book, sheet, this.sheet.getRow(rownum));

But, the sheet doesn't have a row because it hasn't been created!

Is this a bug, or am I misunderstanding something.  This is with CVS head.
I want to get my contrib testcases in because a user of
HSSFCellUtil thinks he may have found a bug, and I want him to supply a
testcase proving it.

Eric Pugh


---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org