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
{
			se = new ScriptExpression( "Total.sum("
					+ measure.getMeasureExpression( ) + ",null,"
					+ query.getGroups( ).size( ) + ")" );
		}
		else if ( function.equals( "count" ) )
		{
			se = new ScriptExpression( "Total.count("
					+ "null," + query.getGroups( ).size( ) + ")" );
		}
		else if ( function.equals( "min" ) )
		{
			se = new ScriptExpression( "Total.min("
					+ measure.getMeasureExpression( ) + ",null,"
					+ query.getGroups( ).size( ) + ")" );
		}
		else if ( function.equals( "max" ) )
		{
			se = new ScriptExpression( "Total.max("
					+ measure.getMeasureExpression( ) + ",null,"
					+ query.getGroups( ).size( ) + ")" );
		}
		se.setDataType( ModelAdapter.adaptModelDataType( measure.getDataType( ) ) );
		return se;
	}
	/**
	 * 
	 * @param query
	 * @param resultMetaList
	 * @param levelNameColumnNamePair