Bug 179661 NPE throws out when preview the attached report [1102]
Description: NPE throws out when preview the attached report [1102] Build number: 2.2.0.v20070328-0630 Steps to reproduce: 1, Using attached report design file 2, Preview Expected result: Previewed successfully Actual result: NPE throws out when preview Error log:
data/org.eclipse.birt.report.data.adapter/src/org/eclipse/birt/report/data/adapter/impl/DataSetIterator.java
/**
	 * Create DataSetIterator for a hierarchy.
	 * 
	 * @param session
	 * @param hierHandle
	 * @throws BirtException
	 */
	public DataSetIterator( DataRequestSession session,
			TabularHierarchyHandle hierHandle ) throws BirtException
	{
		QueryDefinition query = new QueryDefinition( );
		query.setUsesDetails( true );
		query.setDataSetName( hierHandle.getDataSet( ).getQualifiedName( ) );
		List metaList = new ArrayList();
		this.prepareLevels( query,
				hierHandle, metaList );
		this.it = session.prepare( query ).execute( null ).getResultIterator( );
		this.metadata = new ResultMeta( metaList );
	}
	/**
	 * Create DataSetIterator for fact table.
	 * 
	 * @param session
	 * @param cubeHandle
	 * @throws BirtException
	 */
	public DataSetIterator( DataRequestSession session,
			TabularCubeHandle cubeHandle ) throws BirtException
	{
		QueryDefinition query = new QueryDefinition( );