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
query.setUsesDetails( true );
		query.setDataSetName( cubeHandle.getDataSet( ).getQualifiedName( ) );
		List dimensions = cubeHandle.getContents( CubeHandle.DIMENSIONS_PROP );
		List metaList = new ArrayList();
		if ( dimensions != null )
		{
			for ( int i = 0; i < dimensions.size( ); i++ )
			{
				TabularDimensionHandle dimension = (TabularDimensionHandle) dimensions.get( i );
				List hiers = dimension.getContents( DimensionHandle.HIERARCHIES_PROP );
				
				assert hiers.size( ) == 1;
				TabularHierarchyHandle hierHandle = (TabularHierarchyHandle) hiers.get( 0 );
				if ( hierHandle.getDataSet( ) == null
						|| hierHandle.getDataSet( )
								.getQualifiedName( )
								.equals( cubeHandle.getDataSet( ).getQualifiedName( ) ) )
				{
					prepareLevels( query,
							hierHandle, metaList );
				}
				else
				{
					
					/*Use different data set
					 Iterator it = cubeHandle.joinConditionsIterator( );
					 DimensionConditionHandle dimCondHandle = (DimensionConditionHandle) it.next( );
					 
					 if ( dimCondHandle.getHierarchy( ).equals( hierHandle ))
					 {