Project: Birt
Bug 233147 NPE throws out when report design including a jar file
Reported: 2008-05-21 02:40:18 | Status: closed fixed

Description: NPE throws out when report design including a jar file Build number: 2.3.0.v20080521-0630 Steps to reproduce: 1, New a report design 2, In Resources of PropertyEditor add a Jar file 3, Preview in Web viewer Expected result: No exception throws out Actual result: NPE throws out Error log: org.eclipse.birt.report.service.api.ReportServiceException: Error happened while running the report.; nested exception is: java.lang.NullPointerException Show Exception Stack Trace Hide Exception Stack Trace Stack Trace: org.eclipse.birt.report.engine.internal.document.v4.AbstractReportExecutor.(AbstractReportExecutor.java:80) org.eclipse.birt.report.engine.internal.document.v4.ReportPageExecutorV4.(ReportPageExecutorV4.java:39) org.eclipse.birt.report.engine.internal.document.ReportPageExecutor.(ReportPageExecutor.java:41) org.eclipse.birt.report.engine.api.impl.RenderTask$PageRangeRender.render(RenderTask.java:442) org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:223) org.eclipse.birt.report.service.ReportEngineService.renderReport(ReportEngineService.java:1303) org.eclipse.birt.report.service.BirtViewerReportService.getPage(BirtViewerReportService.java:178) org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.doExecution(AbstractGetPageActionHandler.java:236) org.eclipse.birt.report.service.actionhandler.AbstractGetPageActionHandler.__execute(AbstractGetPageActionHandler.java:105) org.eclipse.birt.report.service.actionhandler.AbstractBaseActionHandler.execute(AbstractBaseActionHandler.java:89) org.eclipse.birt.report.soapengine.processor.AbstractBaseDocumentProcessor.__executeAction(AbstractBaseDocumentProcessor.java:47) org.eclipse.birt.report.soapengine.processor.AbstractBaseComponentProcessor.executeAction(AbstractBaseComponentProcessor.java:159) org.eclipse.birt.report.soapengine.processor.BirtDocumentProcessor.handleGetPage(BirtDocumentProcessor.java:87)

Files changed in fix:
core/org.eclipse.birt.core/src/org/eclipse/birt/core/script/ScriptContext.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/executor/ExecutionContext.java