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
: measureDefn.getAggrFunction( ),
						0 );
				calculatedMemberList.add( calculatedMember[index] );
				index++;
			}
		}
		
		if ( !cubeAggrBindingList.isEmpty( ) )
		{
			int rsID = 1;
			for ( int i = 0; i < cubeAggrBindingList.size( ); i++ )
			{
				int id = getResultSetIndex( calculatedMemberList,
						( (ICubeAggrDefn) cubeAggrBindingList.get( i ) ).getAggrLevels( ) );
				if ( id == -1 )
				{
					calculatedMember[index] = new CalculatedMember( ( (ICubeAggrDefn) cubeAggrBindingList.get( i ) ).getName( ),
							( (ICubeAggrDefn) cubeAggrBindingList.get( i ) ).getMeasure( ),
							( (ICubeAggrDefn) cubeAggrBindingList.get( i ) ).getAggrLevels( ),
							( (ICubeAggrDefn) cubeAggrBindingList.get( i ) ).aggrName( ),
							rsID );
					calculatedMemberList.add( calculatedMember[index] );
					rsID++;
				}
				else
				{
					calculatedMember[index] = new CalculatedMember( ( (ICubeAggrDefn) cubeAggrBindingList.get( i ) ).getName( ),
							( (ICubeAggrDefn) cubeAggrBindingList.get( i ) ).getMeasure( ),
							( (ICubeAggrDefn) cubeAggrBindingList.get( i ) ).getAggrLevels( ),
							( (ICubeAggrDefn) cubeAggrBindingList.get( i ) ).aggrName( ),