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
ViewerAttributeBean attrBean = (ViewerAttributeBean) request
				.getAttribute( "attributeBean" ); 
		Map configMap = attrBean.getParameters( );
		if ( configMap != null && configMap.containsKey( parameter.getName( ) ) )
		{
			Object configObj = configMap.get( parameter.getName( ) );
			String configValue = null;
			if ( configObj != null )
			{
				configValue = configObj.toString( );
			}
			if ( configValue != null && configValue.length( ) > 0 )
			{
				ReportParameterConverter cfgConverter = new ReportParameterConverter(
						format, Locale.US );
				Object configValueObj = cfgConverter.parse( configValue,
						parameter.getDataType( ) );
				parameterDefaultValue = converter.format( configValueObj );
			}
		}
		parameterBean.setValue( ParameterAccessor.getReportParameter( request,
				parameter.getName( ), parameterDefaultValue ) );
	}
	protected void prepareParameterBean( HttpServletRequest request,
			IViewerReportService service, ScalarParameterBean parameterBean,
			Locale locale ) throws ReportServiceException
	{
	}
}