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/dom/AbstractStyle.java
{
		if ( value == null )
		{
			return null;
		}
		return value.getCssText( );
	}
	public void setCssText( String cssText ) throws DOMException
	{
		IStyle style = (IStyle) engine.parseStyleDeclaration( cssText );
		for ( int i = 0; i < IStyle.NUMBER_OF_STYLE; i++ )
		{
			CSSValue value = style.getProperty( i );
			if ( value != null )
			{
				setProperty( i, value );
			}
		}
	}
	protected int getPropertyIndex( String propertyName )
	{
		return engine.getPropertyIndex( propertyName );
	}
	public String getPropertyValue( String propertyName )
	{
		int index = getPropertyIndex( propertyName );
		if ( index != -1 )
		{
			return getCssText( index );
		}