Bug 173836 NPE was thrown when click "Preview " button quickly twice[00]
NPE was thrown when click "Preview " button quickly twice[00] Build number: 2.2.0.v20070212-0630 Steps to reproduce: 1.open attached report 2.click "Preview" button quickly twice Expected result: Report can be previewed properly Actual result: NPE was thrown in second preview Error log: see screen shot
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/BaseAttributeBean.java
this.rtl = ParameterAccessor.isRtl( request );
		this.reportletId = ParameterAccessor.getReportletId( request );
		this.__init( request );
	}
	/*
	 * Prepare the report parameters
	 */
	protected void __initParameters( HttpServletRequest request )
			throws Exception
	{
		IViewerReportDesignHandle reportDesignHandle = getDesignHandle( request );
		InputOptions options = new InputOptions( );
		options.setOption( InputOptions.OPT_REQUEST, request );
		options.setOption( InputOptions.OPT_LOCALE, locale );
		options.setOption( InputOptions.OPT_RTL, new Boolean( rtl ) );
		Collection parameterList = this.getReportService( )
				.getParameterDefinitions( reportDesignHandle, options, false );
		
		this.parameters = (HashMap) getParsedParameters( reportDesignHandle,
				parameterList, request, options );
		this.missingParameter = BirtUtility.validateParameters( parameterList,
				this.parameters );
	}
	protected IViewerReportDesignHandle getDesignHandle(
			HttpServletRequest request ) throws Exception
	{
		return new BirtViewerReportDesignHandle( null, reportDesignName );
	}
	/**
	 * @return Returns the parameterBean.