Bug 124444 Preview attached file in pdf will display nothing.
Description: Preview attached file in pdf will display nothing. Steps to reproduce: 1. Preview attached design file in pdf Expected result: Report content shows Actual result: Wait for 10 minutes but nothing showed at all
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/DteDataEngine.java
if ( query == null )
			return null;
		if ( query instanceof IQueryDefinition )
		{
			Scriptable scope = context.getSharedScope( );
			IPreparedQuery pQuery = ( IPreparedQuery ) queryMap.get( query );
			assert ( pQuery != null );
			if ( pQuery != null )
			{
				try
				{
					IQueryResults queryResults = getParentQR( );
					if ( queryResults == null )
					{
						queryResults = pQuery.execute( scope );
					} else
					{
						queryResults = pQuery.execute( queryResults, scope );
					}
					IResultIterator ri = queryResults.getResultIterator( );
					assert ri != null;
					DteResultSet dRS = new DteResultSet( queryResults, this,
							context );
					rsStack.addLast( dRS );
					return dRS;
				} catch ( BirtException e )
				{
					logger.log( Level.SEVERE, e.getMessage( ), e );
					context.addException( e );
					return null;