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
{
		String queryString = ""; 
		Enumeration e = request.getParameterNames( );
		Set nullParams = getParameterValues( request, PARAM_ISNULL );
		boolean isFirst = true;
		while ( e.hasMoreElements( ) )
		{
			String paramName = (String) e.nextElement( );
			if ( paramName != null
					&& !paramName.equalsIgnoreCase( PARAM_ISNULL ) )
			{
				String paramValue = getParameter( request, paramName, false );
				if ( nullParams != null
						&& nullParams.remove( toUTFString( paramName ) )
						&& !paramName.equalsIgnoreCase( name ) ) 
				
				
				{
					paramName = urlEncode( paramName, ISO_8859_1_ENCODE );
					queryString += ( isFirst ? "" : PARAMETER_SEPARATOR ) + PARAM_ISNULL + EQUALS_OPERATOR + paramName; 
					isFirst = false;
					continue;
				}
				if ( paramName.equalsIgnoreCase( name ) )
				{
					paramValue = value;
				}
				paramName = urlEncode( paramName, ISO_8859_1_ENCODE );
				paramValue = urlEncode( paramValue, UTF_8_ENCODE );
				queryString += ( isFirst ? "" : PARAMETER_SEPARATOR ) + paramName + EQUALS_OPERATOR + paramValue;