Bug 180608 [Regression]NPE throws out when preview the result in dataset[07]
Description: [Regression]NPE throws out when preview the result in dataset[07] Build number: 2.2.0.v20070403-0630 Steps to reproduce: 1, Use attached report 2, Edit Data Set 3, Preview the Data Set Expected result: The preview should be success Actual result: NPE throws out Error log:
data/org.eclipse.birt.data.tests/test/org/eclipse/birt/data/engine/binding/FeaturesTest.java
String[] bindingNameRow = new String[]{
				"ROW_COUNTRY", "ROW_ORDERED", "ROW_ORDERED_2"
		};
		IBaseExpression[] bindingExprRow = new IBaseExpression[]{
				new ScriptExpression( "dataSetRow.COUNTRY",
						DataType.STRING_TYPE ),
				new ScriptExpression( "Total.Sum(dataSetRow.ORDERED)",
						DataType.INTEGER_TYPE ),
				new ScriptExpression( "Total.Sum(dataSetRow.ORDERED * 2)",
						DataType.INTEGER_TYPE )
		};
		QueryDefinition queryDefn = this.createQuery( null,
				null,
				null,
				null,
				null,
				null,
				null,
				null,
				null,
				bindingNameRow,
				bindingExprRow );
		IPreparedQuery preparedQuery = dataEngine.prepare( queryDefn );
		IQueryResults results = preparedQuery.execute( null );
		IResultIterator it = results.getResultIterator( );
		
		final int totalOrdered = 4;
		int total1 = it.getInteger( bindingNameRow[1] ).intValue( );
		assertEquals( total1, totalOrdered );