Bug 145462 [regression]Chart in attached report doesn't display correctly
Description: Chart in attached report doesn't display correctly Steps to reproduce: 1. Preview attached report in Web viewer/html/pdf. 2. Deploy birt and preview attched report in Web viewer/html/pdf Expected result: Four charts display Actual result: In Web Viewer, preview is ok. The second chart disppeared when preview in pdf. While deploy birt, the second chart also disappeared in html and returned below errors: Chart (id = 29): - $NO-RB$ null null ( 1 time(s) ) detail : org.eclipse.birt.chart.exception.ChartException: $NO-RB$ null at org.eclipse.birt.chart.factory.Generator.render(Generator.java:1238) at org.eclipse.birt.chart.reportitem.ChartReportItemPresentationImpl.onRowSets(ChartReportItemPresentationImpl.java:449) at org.eclipse.birt.report.engine.presentation.LocalizedEmitter.startExtendedContent(LocalizedEmitter.java:669) at org.eclipse.birt.report.engine.presentation.LocalizedEmitter.startForeign(LocalizedEmitter.java:439) at org.eclipse.birt.report.engine.presentation.WrappedEmitter.startForeign(WrappedEmitter.java:209) at org.eclipse.birt.report.engine.presentation.DefaultPaginationEmitter.startForeign(DefaultPaginationEmitter.java:488) at org.eclipse.birt.report.engine.executor.ExtendedItemExecutor.execute(ExtendedItemExecutor.java:103) at org.eclipse.birt.report.engine.executor.ReportExecutorVisitor.visitExtendedItem(ReportExecutorVisitor.java:83) at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedItemDesign.java:30) at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(ReportExecutor.java:129) at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(ReportExecutor.java:89) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:171) at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(Unknown Source) at org.eclipse.birt.report.service.ReportEngineService.runAndRenderReport(Unknown Source) at org.eclipse.birt.report.service.BirtViewerReportService.runAndRenderReport(Unknown Source) at org.eclipse.birt.report.service.actionhandler.BirtRunAndRenderActionHandler.__execute(Unknown Source) at org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(Unknown Source) at org.eclipse.birt.report.presentation.aggregation.layout.EngineFragment.doService(Unknown Source) at org.eclipse.birt.report.presentation.aggregation.AbstractBaseFragment.service(Unknown Source) at org.eclipse.birt.report.servlet.BirtEngineServlet.__doGet(Unknown Source) at org.eclipse.birt.report.servlet.BaseReportEngineServlet.doGet(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595) Caused by: java.lang.NullPointerException at org.eclipse.birt.chart.device.swing.SwingRendererImpl.registerTriggers(SwingRendererImpl.java:1552) at org.eclipse.birt.chart.device.swing.SwingRendererImpl.enableInteraction(SwingRendererImpl.java:1587) at org.eclipse.birt.chart.render.Line.renderMarker(Line.java:1024) at org.eclipse.birt.chart.render.Line.renderSeries(Line.java:601) at org.eclipse.birt.chart.render.AxesRenderer.renderPlot(AxesRenderer.java:2247) at org.eclipse.birt.chart.render.AxesRenderer.render(AxesRenderer.java:297) at org.eclipse.birt.chart.factory.Generator.render(Generator.java:1233)
chart/org.eclipse.birt.chart.device.extension/src/org/eclipse/birt/chart/device/swing/SwingRendererImpl.java
{
	/**
	 * KEY = TRIGGER_CONDITION VAL = COLLECTION OF SHAPE-ACTION INSTANCES
	 */
	private final Map _lhmAllTriggers = new HashMap( );
	/**
	 * key = ShapeAction, val = collection of trigger conditions
	 */
	private final List _allShapes = new LinkedList( );
	private final Map _htLineStyles = new HashMap( );
	protected Graphics2D _g2d;
	protected IDisplayServer _ids;
	private IUpdateNotifier _iun = null;
	private SwingEventHandler _eh = null;
	private static ILogger logger = Logger.getLogger( "org.eclipse.birt.chart.device.extension/swing" );