Project: Birt
Bug 117455 NullPointException is thrown when set archive argument of the second run method in RunTask class to null.
Reported: 2005-11-22 04:59:46 | Status: closed fixed

Description: NullPointException is thrown when set archive argument of the second run method in RunTask class to null. Steps to reproduce: 1. call run( IDocumentArchive archive ) method in RunTask class with null archive argument. Expected result: Null archive is processed. Actual result: [java] java.lang.NullPointerException [java] at org.eclipse.birt.report.engine.api.impl.ReportDocument.saveDesign(ReportDocument.java:129) [java] at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:96) [java] at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:69) [java] at org.eclipse.birt.report.tests.engine.api.RunTaskTest.testRun(RunTaskTest.java:58) [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) [java] at org.eclipse.core.launcher.Main.run(Main.java:973) [java] at org.eclipse.core.launcher.Main.main(Main.java:948) [java] Nov 22, 2005 5:54:49 PM

Files changed in fix:
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/impl/RunTask.java