Bug 140620 Chart scripting errors are ignored
Write a chart with an invalid script, the execution simply ignores the script. This makes it difficult to debug scripting. The error message is also not precise and needs improvements.
chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/factory/Generator.java
}
		
		if ( rtc == null )
		{
			rtc = new RunTimeContext( );
		}
		
		if ( rtc.getULocale( ) == null )
		{
			rtc.setULocale( ULocale.getDefault( ) );
		}
		
		IChartScriptContext icsc = rtc.getScriptContext( );
		if ( icsc == null )
		{
			
			ChartScriptContext csc = new ChartScriptContext( );
			csc.setChartInstance( (Chart) EcoreUtil.copy( cmDesignTime ) );
			csc.setExternalContext( externalContext );
			csc.setULocale( rtc.getULocale( ) );
			csc.setLogger( logger );
			rtc.setScriptContext( csc );
			icsc = csc;
		}
		else if ( icsc instanceof ChartScriptContext )
		{
			
			( (ChartScriptContext) icsc ).setLogger( logger );
		}
		if ( externalContext != null && icsc instanceof ChartScriptContext )