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
}
	}
	/**
	 * Serialize instance status into output stream.
	 * 
	 * @param outputStream
	 * @throws DataException 
	 */
	public void doSave( OutputStream outputStream, Map requestColumnMap )
			throws DataException
	{
		assert outputStream != null;
		
		DataOutputStream dos = new DataOutputStream( outputStream );
		Set resultSetNameSet = ResultSetUtil.getRsColumnRequestMap( requestColumnMap );
		
		
		
		int size = resultSetNameSet.size( );
		for ( int i = 0; i < projectedCols.length; i++ )
		{
			String columnName = projectedCols[i].getName( );
			String columnAlias = projectedCols[i].getAlias( );
			if ( resultSetNameSet.contains( columnName )
					&& resultSetNameSet.contains( columnAlias ) )
				size--;
		}
		try
		{
			IOUtil.writeInt( outputStream, size );