Bug 140974 bad assert in ScalarParameterFragment
The following assert appears around line 98 in org.eclipse.birt.report.viewer.aggregation.parameter.ScalarParameterFragment assert paramDefaultValueObj instanceof String; If the report does not have a default value for the parameter in the report, then this assert fails even though the code that follows it explicitly handles a null value. Since null is a valid value, the assert should be assert (paramDefaultValueObj == null) || (paramDefaultValueObj instanceof String);
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/utility/ParameterAccessor.java
}
		}
		sHtmlEncoded = sbHtmlEncoded.toString( );
		return sHtmlEncoded;
	}
	/**
	 * Initial the parameters class. Web.xml is in UTF-8 format. No need to do
	 * encoding convertion.
	 * 
	 * @param config
	 *            Servlet configuration
	 */
	public synchronized static void initParameters( ServletConfig config )
	{
		
		ServletContext context = config.getServletContext( );
		workingFolder = context.getInitParameter( INIT_PARAM_REPORT_DIR );
		if ( workingFolder == null || workingFolder.trim( ).length( ) <= 0 )
		{
			
			workingFolder = context.getRealPath( "/" ); 
		}
		
		
		if ( workingFolder != null
				&& workingFolder.trim( ).endsWith( File.separator ) )
		{
			workingFolder = workingFolder.trim( ).substring( 0,
					workingFolder.trim( ).length( ) - 1 );
		}