Bug 200802 Warning in log when preview a correct report in xls.[1203]
Description: Warning in log when preview a correct report in xls. Build number:2.2.1.v200708220927 Steps to reproduce: 1. Preview attached report in xls. 2. See report engine log file. Expected result: No errors and warnings. Actual result: Aug 22, 2007 7:15:56 PM org.eclipse.birt.report.engine.emitter.excel.DataCache getData WARNING: Row is not correct Error log:n/a
engine/org.eclipse.birt.report.engine.emitter.prototype.excel/src/org/eclipse/birt/report/engine/emitter/excel/DataCache.java
public Object getData(int col, int row)
	{
	
		int start = ((Integer)colrow.get( new Integer(col) )).intValue( );
		
		if(row < start)
		{			
			logger.log( Level.WARNING,  "Row is not correct");
			return null;
		}
		else
		{
			List data = (List) columns.get( col );
			
			if(data.size( ) > (row - start))
			{	
				return data.get(row - start);
			}	
			else
			{
				return null;
			}	
		}	
	}	
	public int getColumnCount( )
	{
		return columns.size( );
	}	
}