Bug 167511 [Block]NPE when using customized IStyleProcessor with Chart Generator and no Chart will be rendered
Use a customized IStyleProcessor with Generator.build() and the chart will not be rendered in UI.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/factory/Generator.java
}
			}
		}
		if ( obj instanceof Text )
		{
			if ( obj.eContainer( ) instanceof Legend )
			{
				return StyledComponent.LEGEND_LABEL_LITERAL;
			}
		}
		if ( obj instanceof LineAttributes && obj.eContainer( ) instanceof Axis )
		{
			return StyledComponent.AXIS_LINE_LITERAL;
		}
		return null;
	}
	private void applyStyles( Chart model, StyledComponent type,
			EObject component, IStyleProcessor externalProcessor )
	{
		if ( component instanceof Block )
		{
			
			if ( component.eContainer( ) instanceof Chart )
			{
				IStyle style = getMingledStyle( model, type, externalProcessor );
				
				ColorDefinition newBackcolor = style.getBackgroundColor( );
				Image newBackimage = style.getBackgroundImage( );
				Fill background = ( (Block) component ).getBackground( );
				if ( background == null