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
measureNames.add( measure.getName( ) );
			}
		}
		IDimension[] dimensions = populateDimensions( cubeMaterializer,
				cubeHandle.getContents( CubeHandle.DIMENSIONS_PROP ) );
		cubeMaterializer.createCube( cubeHandle.getQualifiedName( ),
				dimensions,
				new DataSetIterator( this, (TabularCubeHandle)cubeHandle ),
				this.toStringArray( measureNames ),
				null );
	}
	/**
	 * Populate all dimensions.
	 * @param cubeMaterializer
	 * @param dimHandles
	 * @return
	 * @throws IOException
	 * @throws BirtException
	 * @throws DataException
	 */
	private IDimension[] populateDimensions( CubeMaterializer cubeMaterializer,
			List dimHandles ) throws IOException, BirtException, DataException
	{
		List result = new ArrayList( );
		for ( int i = 0; i < dimHandles.size( ); i++ )
		{
			result.add( populateDimension( cubeMaterializer,
					(DimensionHandle) dimHandles.get( i ) ) );
		}