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/DataRequestSessionImpl.java
null );
			}
		}
		catch ( Exception e )
		{
			throw new DataException( e.getLocalizedMessage( ) );
		}
		assert false;
	}
	/**
	 * 
	 * @param cubeHandle
	 * @param cubeMaterializer
	 * @throws IOException
	 * @throws BirtException
	 * @throws DataException
	 */
	private void createCube( CubeHandle cubeHandle,
			CubeMaterializer cubeMaterializer ) throws IOException,
			BirtException, DataException
	{
		List measureNames = new ArrayList( );
		List measureGroups = cubeHandle.getContents( CubeHandle.MEASURE_GROUPS_PROP );
		for ( int i = 0; i < measureGroups.size( ); i++ )
		{
			MeasureGroupHandle mgh = (MeasureGroupHandle) measureGroups.get( i );
			List measures = mgh.getContents( MeasureGroupHandle.MEASURES_PROP );
			for ( int j = 0; j < measures.size( ); j++ )
			{
				MeasureHandle measure = (MeasureHandle) measures.get( j );