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/presentation/aggregation/parameter/ScalarParameterFragment.java
* Override implementation of doPostService.
	 */
	protected String doPostService( HttpServletRequest request,
			HttpServletResponse response ) throws ServletException, IOException
	{
		String className = getClass( ).getName( ).substring(
				getClass( ).getName( ).lastIndexOf( '.' ) + 1 );
		return JSPRootPath + "/pages/parameter/" + className + ".jsp"; 
	}
	public static void prepareParameterBean(
			IViewerReportDesignHandle designHandle,
			IViewerReportService service, HttpServletRequest request,
			ScalarParameterBean parameterBean, ParameterDefinition parameter,
			Locale locale, boolean isDesigner ) throws ReportServiceException
	{
		
		String displayName = parameter.getPromptText( );
		displayName = ( displayName == null || displayName.length( ) <= 0 )
				? parameter.getDisplayName( )
				: displayName;
		displayName = ( displayName == null || displayName.length( ) <= 0 )
				? parameter.getName( )
				: displayName;
		displayName = ParameterAccessor.htmlEncode( displayName );
		parameterBean.setDisplayName( displayName );
		
		InputOptions options = new InputOptions( );
		options.setOption( InputOptions.OPT_REQUEST, request );
		Object paramDefaultValueObj = service.getParameterDefaultValue(
				designHandle, parameterBean.getName( ), options );