Fixed bug 10943

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352785 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Glen Stampoultzis 2002-07-20 07:49:19 +00:00
parent 9d4c978b04
commit 080d3bf414
2 changed files with 67 additions and 61 deletions

View File

@ -93,8 +93,7 @@ public class Sheet
extends java.lang.Object extends java.lang.Object
{ {
protected ArrayList records = null; protected ArrayList records = null;
int preoffset = int preoffset = 0; // offset of the sheet in a new file
0; // offset of the sheet in a new file
int loc = 0; int loc = 0;
protected boolean containsLabels = false; protected boolean containsLabels = false;
; ;

View File

@ -169,6 +169,8 @@ public class HSSFSheet
{ {
hrow = getRow( cval.getRow() ); hrow = getRow( cval.getRow() );
} }
if ( hrow != null )
{
lastrow = hrow; lastrow = hrow;
log.log( DEBUG, "record id = " + Integer.toHexString( ( (Record) cval ).getSid() ) ); log.log( DEBUG, "record id = " + Integer.toHexString( ( (Record) cval ).getSid() ) );
hrow.createCellFromRecord( cval ); hrow.createCellFromRecord( cval );
@ -176,6 +178,11 @@ public class HSSFSheet
log.log( DEBUG, "record took ", log.log( DEBUG, "record took ",
new Long( System.currentTimeMillis() - cellstart ) ); new Long( System.currentTimeMillis() - cellstart ) );
} }
else
{
cval = null;
}
}
log.log(DEBUG, "total sheet cell creation took ", log.log(DEBUG, "total sheet cell creation took ",
new Long(System.currentTimeMillis() - timestart)); new Long(System.currentTimeMillis() - timestart));
} }