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
/**
	 * File package name to store the documents.
	 */
	protected static final String DOCUMENTS_DIR = "documents";
	/**
	 * Report working folder.
	 */
	public static String workingFolder = null;
	/**
	 * Preview report max rows
	 */
	public static int maxRows;
	/**
	 * Current web application locale.
	 */
	protected static Locale webAppLocale = null;
	/**
	 * Flag indicating that if user can only access the file in working folder.
	 */
	protected static boolean isWorkingFolderAccessOnly = true;
	/**
	 * Get bookmark. If page exists, ignore bookmark.
	 * 
	 * @param request
	 * @return the bookemark
	 */
	public static String getBookmark( HttpServletRequest request )
	{
		int page = getParameterAsInt( request, PARAM_PAGE );
		return page < 1