Bug 147819 Dynamic parameter, if value column datas include null datas, preview, system throws exception
Dynamic parameter, if value column datas include null datas, preview, system throws exception Step: data source: sample DB data set: select * from CLASSICMODELS.CUSTOMERS 1.Create a dynamic parameter 2.Display type select List Box, value columm select "State"; display text select "CUSTOMERNAME"; 3.Preview in html Actual Results: 1.System throws Http status 500 exception
model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/util/ParameterValidationUtil.java
if ( value == null )
			return null;
		if ( StringUtil.isBlank( format ) )
		{
			return getDisplayValue( dataType, value, locale );
		}
		if ( DesignChoiceConstants.PARAM_TYPE_DATETIME
				.equalsIgnoreCase( dataType )
				|| value instanceof Date )
		{
			DateFormatter formatter = new DateFormatter( locale );
			formatter.applyPattern( format );
			return formatter.format( (Date) value );
		}
		else if ( DesignChoiceConstants.PARAM_TYPE_FLOAT
				.equalsIgnoreCase( dataType )
				|| value instanceof Float || value instanceof Double )
		{
			NumberFormatter formatter = new NumberFormatter( locale );
			formatter.applyPattern( format );
			return formatter.format( ( (Double) value ).doubleValue( ) );
		}
		else if ( DesignChoiceConstants.PARAM_TYPE_DECIMAL
				.equalsIgnoreCase( dataType )
				|| value instanceof BigDecimal )
		{
			NumberFormatter formatter = new NumberFormatter( locale );
			formatter.applyPattern( format );
			return formatter.format( ( (BigDecimal) value ).doubleValue( ) );
		}