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.data/src/org/eclipse/birt/data/engine/olap/query/view/CubeQueryDefinitionUtil.java
if ( measureList == null )
			return new CalculatedMember[0];
		CalculatedMember[] calculatedMember = new CalculatedMember[measureList.size( )
				+ cubeAggrBindingList.size( )];
		int index = 0;
		
		List calculatedMemberList = new ArrayList();
		if ( !measureList.isEmpty( ) )
		{
			List levelList = new ArrayList( );
			ILevelDefinition[] rowLevels = getLevelsOnEdge( queryDefn.getEdge( ICubeQueryDefinition.ROW_EDGE ) );
			ILevelDefinition[] columnLevels = getLevelsOnEdge( queryDefn.getEdge( ICubeQueryDefinition.COLUMN_EDGE ) );
			for ( int i = 0; i < rowLevels.length; i++ )
			{
				levelList.add( rowLevels[i].getName( ) );
			}
			for ( int i = 0; i < columnLevels.length; i++ )
			{
				levelList.add( columnLevels[i].getName( ) );
			}
			Iterator measureIter = measureList.iterator( );
			while ( measureIter.hasNext( ) )
			{
				MeasureDefinition measureDefn = (MeasureDefinition) measureIter.next( );
				calculatedMember[index] = new CalculatedMember( measureDefn.getName( ),
						measureDefn.getName( ),
						levelList,
						measureDefn.getAggrFunction( ) == null
								? BuiltInAggregationFactory.TOTAL_SUM_FUNC