Project: Birt
Bug 117479 NullPointException is thrown while call render method in RenderTask class with null renderOptions.
Reported: 2005-11-22 08:38:28 | Status: closed fixed

Description: NullPointException is thrown while call render method in RenderTask class with null renderOptions. Steps to reproduce: 1. call render method in RenderTask class with null renderOptions. Expected result: The condition that renderOptions is null is processed. Actual result: [java] java.lang.NullPointerException [java] at org.eclipse.birt.report.engine.api.impl.RenderTask.doRender(RenderTask.java:127) [java] at org.eclipse.birt.report.engine.api.impl.RenderTask.render(RenderTask.java:88) [java] at org.eclipse.birt.report.tests.engine.api.RenderTaskTest.testRender(RenderTaskTest.java:52) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at junit.framework.TestCase.runTest(TestCase.java:154) [java] at junit.framework.TestCase.runBare(TestCase.java:127) [java] at junit.framework.TestResult$1.protect(TestResult.java:106) [java] at junit.framework.TestResult.runProtected(TestResult.java:124) [java] at junit.framework.TestResult.run(TestResult.java:109) [java] at junit.framework.TestCase.run(TestCase.java:118) [java] at junit.framework.TestSuite.runTest(TestSuite.java:208) [java] at junit.framework.TestSuite.run(TestSuite.java:203) [java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:331) [java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:199) [java] at org.eclipse.test.CoreTestApplication.runTests(CoreTestApplication.java:35) [java] at org.eclipse.test.CoreTestApplication.run(CoreTestApplication.java:31) [java] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226) [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376) [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163) [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [java] at java.lang.reflect.Method.invoke(Method.java:324) [java] at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334) [java] at org.eclipse.core.launcher.Main.basicRun(Main.java:278)

Files changed in fix:
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RenderTask.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/AbstractDataEngine.java engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/data/dte/ReportQueryBuilder.java