Bug 147407 Preview the attached report in the web viewer first time and then click the TOC button will cause NPE error
Description: It just can be reprouduced at first time preview. Step to reproduce: 1. please use attach report file 2. preview it in the web viewer 3. click the "Toggle table of contents" button Actual result: As the atteched screenshot shows,There is a NPE error.And if you preview it in the Web viewer again, the phenomenon is disappear.But reopen the eclipse and preview it at first time, it will be occured.
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
.getInitParameter( INIT_PARAM_WORKING_FOLDER_ACCESS_ONLY ) )
				.booleanValue( );
		
		String s_maxRows = context.getInitParameter( INIT_PARAM_VIEWER_MAXROWS );
		try
		{
			maxRows = Integer.valueOf( s_maxRows ).intValue( );
		}
		catch ( NumberFormatException e )
		{
			maxRows = -1;
		}
		clearDocuments( );
	}
	/**
	 * Check whether the viewer is used in designer or not.
	 * 
	 * @param request
	 * @return
	 */
	public static boolean isDesigner( HttpServletRequest request )
	{
		boolean inDEsigner = false;
		if ( "true".equalsIgnoreCase( getParameter( request, PARAM_DESIGNER ) ) ) 
		{
			inDEsigner = true;
		}
		return inDEsigner;
	}
	public static boolean isToc( HttpServletRequest request )