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/util/OlapExpressionUtil.java
* @param bindings
	 * @return
	 */
	public static ICubeAggrDefn[] getAggrDefns( List bindings )
	{
		if ( bindings == null || bindings.size( ) == 0 )
			return new ICubeAggrDefn[0];
		List cubeAggrDefns = new ArrayList( );
		for ( Iterator it = bindings.iterator( ); it.hasNext( ); )
		{
			IBinding binding = ( (IBinding) it.next( ) );
			if ( binding.getExpression( ) instanceof IScriptExpression )
			{
				
				
				if ( binding.getAggrFunction( ) != null  )
					cubeAggrDefns.add( new CubeAggrDefn( binding.getBindingName( ),
							getMeasure( ( (IScriptExpression) binding.getExpression( ) ).getText( ) ),
							binding.getAggregatOns( ),
							binding.getAggrFunction( ) ) );
			}
		}
		ICubeAggrDefn[] result = new ICubeAggrDefn[cubeAggrDefns.size( )];
		for ( int i = 0; i < result.length; i++ )
		{
			result[i] = (ICubeAggrDefn) cubeAggrDefns.get( i );
		}
		return result;
	}
	private static class CubeAggrDefn implements ICubeAggrDefn