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
new ScriptExpression( "row.CITY", DataType.INTEGER_TYPE ),
				new ScriptExpression( "row.SALE_DATE", DataType.UNKNOWN_TYPE ),
				new ScriptExpression( "Total.sum(row.AMOUNT)",
						DataType.INTEGER_TYPE )
		};
		QueryDefinition queryDefn = this.createQuery( null,
				null,
				null,
				null,
				null,
				null,
				null,
				null,
				null,
				bindingNameRow,
				bindingExprRow );
		IPreparedQuery preparedQuery = dataEngine.prepare( queryDefn );
		IQueryResults queryResults = preparedQuery.execute( null );
		IResultIterator resultIt = queryResults.getResultIterator( );
		resultIt.next( );
		for ( int i = 0; i < expressions.length; i++ )
		{
			Boolean expectedTrueOrFalse = (Boolean) expectedValue[i * 2];
			if ( expectedTrueOrFalse == Boolean.TRUE )
			{
				Object value = expectedValue[i * 2 + 1];
				if ( value instanceof Class )
					assertTrue( ( (Class) value ).isInstance( resultIt.getValue( bindingNameRow[i] ) ) );
				else
					assertEquals( value, resultIt.getValue( bindingNameRow[i] ) );