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
new ScriptExpression( exprString ));
			
			GroupDefinition gd = new GroupDefinition( );
			gd.setKeyExpression( ExpressionUtil.createJSRowExpression( level.getName( ) ) );
			query.addGroup( gd );
		}
	}
	private String populateLevelKeyExpression( TabularLevelHandle level,
			int type )
	{
		String exprString = ExpressionUtil.createJSDataSetRowExpression( level.getColumnName( ) );
	/*	if ( isTimeType( type ))
		{
			String dateName = level.getDateTimeLevelType( );
			if ( DesignChoiceConstants.DATE_TIME_LEVEL_TYPE_DAY.equals( dateName ))
			{
				exprString = "BirtDateTime.day(" + exprString + ")";
			}
			else if ( DesignChoiceConstants.DATE_TIME_LEVEL_TYPE_WEEK.equals( dateName ))
			{
				exprString = "BirtDateTime.week(" + exprString + ")";
			}
			if ( DesignChoiceConstants.DATE_TIME_LEVEL_TYPE_MONTH.equals( dateName ))
			{
				exprString = "BirtDateTime.month(" + exprString + ")";
			}
			if ( DesignChoiceConstants.DATE_TIME_LEVEL_TYPE_QUARTER.equals( dateName ))
			{
				exprString = "BirtDateTime.quarter(" + exprString + ")";
			}