Bug 212109 [Automation][Acceptance]NPE is thrown out when previewing report
Description: NPE is thrown out when preview Test Date: 20071206 Test Build: BIRT2.3.0 Daily Build: v20071206-1112 Step to reproduce: 1. Use the report attached 2. Preview it
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/presentation/LocalizedContentVisitor.java
}
				else if ( value instanceof java.util.Date )
				{
					String dateFormat = null;
					if ( value instanceof java.sql.Date )
					{
						dateFormat = style.getDateFormat( );
					}
					else if ( value instanceof java.sql.Time )
					{
						dateFormat = style.getTimeFormat( );
					}
					if ( dateFormat == null )
					{
						dateFormat = style.getDateTimeFormat( );
					}
					DateFormatter fmt = context.getDateFormatter( dateFormat );
					text = fmt.format( (java.util.Date) value );
				}
				else
				{
					text = value.toString( );
				}
			}
		}
		
		if ( text != null )
		{
			data.setText( text );
		}