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
switch ( parameter.getDataType( ) )
		{
			case ParameterDefinition.TYPE_STRING :
			{
				assert paramDefaultValueObj instanceof String;
				parameterBean.setRequired( false );
				if ( paramDefaultValueObj == null && !parameter.allowNull( ) )
				{
					parameterBean.setRequired( true );
				}
				else if ( paramDefaultValueObj != null
						&& ( (String) paramDefaultValueObj ).length( ) <= 0
						&& !parameter.allowBlank( ) )
				{
					parameterBean.setRequired( true );
				}
				break;
			}
			default :
			{
				parameterBean.setRequired( paramDefaultValueObj == null );
				break;
			}
		}
		
		String format = parameter.getPattern( );
		ReportParameterConverter converter = new ReportParameterConverter(
				format, locale );
		String parameterDefaultValue = converter.format( paramDefaultValueObj );