Project: Birt
Bug 118003 [Regression]NullPointException when run attached file about style inheritance.
Reported: 2005-11-25 01:21:07 | Status: closed fixed

Description: NullPointException when run attached file about style inheritance. Steps to reproduce: 1. run attached StyleInherited-test23_27.xml file Expected result: No exception. Result: NIO: java.lang.NullPointerException org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:199) at org.eclipse.birt.report.engine.api.ReportRunner.runAndRenderReport(ReportRunner.java:231) at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.java:157) at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.java:129) Caused by: java.lang.NullPointerException at org.eclipse.birt.report.engine.ir.TextItemDesign.getExpressions(TextItemDesign.java:57) at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.visitTextItem(ReportQueryBuilder.java:456) at org.eclipse.birt.report.engine.ir.TextItemDesign.accept(TextItemDesign.java:115) at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.handleCell(ReportQueryBuilder.java:782) at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.handleRow(ReportQueryBuilder.java:770) at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.visitGridItem(ReportQueryBuilder.java:261) at org.eclipse.birt.report.engine.ir.GridItemDesign.accept(GridItemDesign.java:117) at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.buildQuery(ReportQueryBuilder.java:187) at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(ReportQueryBuilder.java:114) at org.eclipse.birt.report.engine.data.dte.DteDataEngine.prepare(DteDataEngine.java:164) at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(ReportExecutor.java:138) at org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run(RunAndRenderTask.java:193) ... 3 more

Files changed in fix:
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/DataContent.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/content/impl/LabelContent.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/ir/TextItemDesign.java