Bug 199714 NPE with invalid url[0002]
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/context/ViewerAttributeBean.java
if ( IBirtConstants.SERVLET_PATH_FRAMESET.equalsIgnoreCase( request
				.getServletPath( ) )
				|| IBirtConstants.SERVLET_PATH_OUTPUT.equalsIgnoreCase( request
						.getServletPath( ) )
				|| IBirtConstants.SERVLET_PATH_DOWNLOAD
						.equalsIgnoreCase( request.getServletPath( ) ) )
		{
			this.reportDocumentName = ParameterAccessor.getReportDocument(
					request, null, true );
		}
		else
		{
			this.reportDocumentName = ParameterAccessor.getReportDocument(
					request, null, false );
		}
		this.reportDesignName = ParameterAccessor.getReport( request, null );
		
		this.format = ParameterAccessor.getFormat( request );
		if ( IBirtConstants.ACTION_PRINT.equalsIgnoreCase( action ) )
		{
			
			if ( ParameterAccessor.isSupportedPrintOnServer )
				this.format = IBirtConstants.POSTSCRIPT_RENDER_FORMAT;
			else
				this.action = null;
		}
		this.maxRows = ParameterAccessor.getMaxRows( request );
		
		BirtResources.setLocale( ParameterAccessor.getLocale( request ) );