Bug 214196 [Automation][Compatibility]Exception occurs when preview a old crosstab with measure sorting
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/olap/query/view/CubeQueryDefinitionUtil.java
ICubeAggrDefn[] cubeAggrs = OlapExpressionUtil.getAggrDefns( queryDefn.getBindings( ) );
		
		List cubeAggrBindingList = new ArrayList();
		for( int i=0; i< cubeAggrs.length; i++ )
		{
			if( cubeAggrs[i].getAggrName( ) != null )
				cubeAggrBindingList.add( cubeAggrs[i] );
		}
		
		populateMeasureFromBinding( queryDefn );
		populateMeasureFromFilter( queryDefn );
		populateMeasureFromSort( queryDefn );
		if ( measureList == null )
			return new CalculatedMember[0];
		List measureAggrOns = populateMeasureAggrOns( queryDefn );
		
		List unreferencedMeasures = getUnreferencedMeasures( queryDefn,
				measureList,
				measureMapping,
				measureAggrOns );
		CalculatedMember[] calculatedMember = new CalculatedMember[unreferencedMeasures.size( )
				+ cubeAggrBindingList.size( )];
		int index = 0;
		
		List calculatedMemberList = new ArrayList();
		if ( !unreferencedMeasures.isEmpty( ) )
		{
			Iterator measureIter = unreferencedMeasures.iterator( );
			while ( measureIter.hasNext( ) )
			{