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
if ( ( filePath == null ) || ( filePath.length( ) == 0 ) )
			return ""; 
		String sessionId = request.getSession( ).getId( );
		String fileSeparator = "\\"; 
		if ( filePath.lastIndexOf( fileSeparator ) == -1 )
			fileSeparator = "/"; 
		if ( filePath.lastIndexOf( fileSeparator ) != -1 )
		{
			documentName = filePath.substring( filePath
					.lastIndexOf( fileSeparator ) );
			temp = filePath
					.substring( 0, filePath.lastIndexOf( fileSeparator ) );
			if ( temp.lastIndexOf( fileSeparator ) != -1 )
				projectName = temp
						.substring( temp.lastIndexOf( fileSeparator ) );
			else
				projectName = temp;
		}
		else
			documentName = filePath;
		String documentFolder = workingFolder + fileSeparator + DOCUMENTS_DIR
				+ fileSeparator + sessionId + projectName;
		String documentPath = documentFolder + documentName;
		return documentPath;
	}
	/**
	 * Clears the report document files which had been created last time the
	 * server starts up.
	 */
	protected static void clearDocuments( )