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
12, 13, 14, 15, 16, -1, 17, 18, -1, 19, -1, 20, 21, 22, 23, -1, 24,
			25, -1, 26, 27, 28, 29, -1, 30, 31, -1, 32, -1, -1, 33, 34, -1, -1,
			35, 36, 37, 38, 39, 40, -1, 41, 42, -1, 43, 44, 45, 46, -1, 47, 48,
			-1, -1, -1, 49, 50, -1, -1, -1, 51, 52, -1, -1, -1, -1, 53, -1, -1,
			-1, 54, -1, -1, -1, -1, -1, 55, -1, 56, -1, 57, -1, -1, -1, -1, -1,
			-1, 58};
	public static int in_word_set( String str )
	{
		int len = str.length( );
		if ( len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH )
		{
			int key = hash( str );
			if ( key <= MAX_HASH_VALUE && key >= 0 )
			{
				int index = lookup[key];
				if ( index >= 0 )
				{
					if ( len == lengthtable[index] )
					{
						String s = wordlist[index];
						if ( s.equals( str ) )
							return index;
					}
				}
			}
		}
		return -1;
	}
}