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/ViewerAttributeBean.java
this.format = ParameterAccessor.getFormat( request );
		this.maxRows = ParameterAccessor.getMaxRows( request );
		
		BirtResources.setLocale( ParameterAccessor.getLocale( request ) );
		
		ReportEngineService.getInstance( ).setMaxRows( this.maxRows );
		
		this.requestType = request
				.getHeader( ParameterAccessor.HEADER_REQUEST_TYPE );
		
		processReport( request );
		
		this.reportTitle = ParameterAccessor.getTitle( request );
		
		this.isShowTitle = ParameterAccessor.isShowTitle( request );
		
		this.isShowToolbar = ParameterAccessor.isShowToolbar( request );
		
		this.isShowNavigationbar = ParameterAccessor
				.isShowNavigationbar( request );
		
		this.moduleOptions = BirtUtility.getModuleOptions( request );
		this.reportDesignHandle = getDesignHandle( request );
		if ( this.reportDesignHandle == null )
			return;
		
		__initParameters( request );
	}
	/**
	 * Prepare the report parameters