Bug 155799 [regression]Error occour when previewing attached report in web viewer
Error occour when previewing attached report in web viewer Step to reproduce: preview attached report in web viewer Expected: work properly Actual : Error occour in web viewer while in PDF and HTML displayed properly.
data/org.eclipse.birt.data/src/org/eclipse/birt/data/engine/impl/PreparedDummyQuery.java
}
		
		return executionScope;
	}
	
	/**
	 * @return
	 * @throws BirtException 
	 */
	private IResultIterator execSubQuery( String parentQueryResultID, String name,
			Scriptable scope, Scriptable parentScope ) throws BirtException
	{
		Object ob = subQueryMap.get( name );
		if ( ob == null )
			return null;
		PreparedDummyQuery preparedQuery = new PreparedDummyQuery( context,
				(ISubqueryDefinition) ob,
				scope );
		preparedQuery.subQueryName = name;
		preparedQuery.subQueryIndex = 0;
		
		QueryResults queryResults = (QueryResults) preparedQuery.executeQuery( scope,
				parentScope );
		queryResults.setID( parentQueryResultID );		
		return queryResults.getResultIterator( );
	}
	/**
	 * 
	 */
	private class QueryResults implements IQueryResults, IQueryService