Bug 209303 [Automation][Smoke]NPE is thrown out when previewing reportdesign
Description: NPE is thrown out when previewing reportdesign TestDate: 20071109 TestBuild: BIRT2.3.0 Daily Build: v20071109-0800 steps to reproduce: - use the attached report design - preview it Expected Result: Report can be previewed without any exception Actual Result: NPE is thrown out. Error log: Please refer to the attachment
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/css/engine/PerfectHash.java
int hashValue = str.length( );
		switch ( hashValue )
		{
			default :
				hashValue += asso_values[str.charAt( 11 )];
			case 11 :
			case 10 :
			case 9 :
			case 8 :
			case 7 :
			case 6 :
			case 5 :
			case 4 :
			case 3 :
				hashValue += asso_values[str.charAt( 2 )];
			case 2 :
			case 1 :
				hashValue += asso_values[str.charAt( 0 )];
				break;
		}
		return hashValue + asso_values[str.charAt( str.length( ) - 1 )];
	}
	
	static int lengthtable[] = {11, 12, 11, 12, 10, 11, 13, 12, 18, 14, 15, 11,
			17, 18, 19, 10, 16, 13, 19, 16, 18, 14, 10, 11, 17, 19, 11, 12, 17,
			14, 16, 17, 13, 7, 17, 16, 17, 13, 9, 10, 21, 11, 14, 11, 21, 13,
			14, 16, 5, 16, 16, 11, 21, 12, 14, 11, 13, 6, 7};
	static String wordlist[] = {
	      "time-format" ,
	      "number-align" ,