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/src/org/eclipse/birt/data/engine/executor/ResultClass.java
private HashMap nameToIdMapping;
	private String[] fieldNames;
	private int[] fieldDriverPositions;
	private ResultClassHelper resultClassHelper;
	private boolean hasAny;
	private List originalAnyTypeField;
	
	public ResultClass( List projectedColumns ) throws DataException
	{	
		assert( projectedColumns != null );
		validateProjectColumns( projectedColumns);
		initColumnsInfo( projectedColumns );
		
	}
	
	/**
	 * 
	 * @param projectedColumns
	 * @throws DataException 
	 */
	private void validateProjectColumns( List projectedColumns ) throws DataException
	{
		Set columnNameSet = new HashSet();
		for( int i = 0; i < projectedColumns.size(); i++ )
		{
			ResultFieldMetadata column = (ResultFieldMetadata)projectedColumns.get(i);
			if ( columnNameSet.contains( column.getName( ) ) )
			{
				throw new DataException( ResourceConstants.DUPLICATE_COLUMN_NAME,
						column.getName( ) );