Bug 212478 Exception occurs when preview the table including a Autotext
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java
design.setQueries( queries );
			if ( !design.useCachedResult( ) )
			{
				for ( int i = 0; i < queries.length; i++ )
				{
					IDataQueryDefinition query = queries[i];
					if ( query != null )
					{
						/*
						 * before 2.1, the user can only defined one query for a
						 * item, so the generated query id is the id of element.
						 * after 2.2, we changes the interface, there could be
						 * multiple queries, so the first query is un-changed,
						 * but the remain queries will have the sequence id.
						 */
						String queryId = String.valueOf( design.getID( ) );
						if ( i > 0 )
						{
							queryId = queryId + "_" + String.valueOf( i );
						}
						this.queryIDs.put( query, queryId );
						
						
						if ( query instanceof IBaseQueryDefinition )
						{
							ResultMetaData metaData = new ResultMetaData(
									(IBaseQueryDefinition) query );
							resultMetaData.put( query, metaData );
						}
						registerQueryAndElement( query, design );