Project: Eclipse_Platform_UI
Bug 91387 [DynamicUI] NPE in WorkbenchWindow$1.addExtension
Reported: 2005-04-14 06:36:16 | Status: verified fixed

build I20050413-0910 While looking through the console output for this build, I saw the following. If this exception is thrown deliberately for the tests, its message should flag it as such. !ENTRY org.eclipse.ui 4 4 2005-04-13 13:18:41.746 [java] !MESSAGE Exception in org.eclipse.ui.internal.registry.UIExtensionTracker$2.doAdd: java.lang.NullPointerException [java] Exception in org.eclipse.ui.internal.registry.UIExtensionTracker$2.doAdd: java.lang.NullPointerException [java] Reason: [java] !ENTRY org.eclipse.ui 4 4 2005-04-13 13:18:41.746 [java] !MESSAGE Exception in org.eclipse.ui.internal.registry.UIExtensionTracker$2.doAdd: java.lang.NullPointerException [java] !STACK 0 [java] java.lang.NullPointerException [java] at org.eclipse.ui.internal.WorkbenchWindow$1.addExtension(WorkbenchWindow.java:404) [java] at org.eclipse.ui.internal.registry.UIExtensionTracker$2.run(UIExtensionTracker.java:58) [java] at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:150) [java] at org.eclipse.ui.internal.UISynchronizer$1.run(UISynchronizer.java:36) [java] at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) [java] at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118) [java] at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2872) [java] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2531) [java] at org.eclipse.ui.tests.util.UITestCase.processEvents(UITestCase.java:155) [java] at org.eclipse.ui.tests.dynamicplugins.DynamicTestCase.getBundle(DynamicTestCase.java:99) [java] at org.eclipse.ui.tests.dynamicplugins.ActionSetTests.testActionSets(ActionSetTests.java:42) [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 junit.framework.TestSuite.runTest(TestSuite.java:208) [java] at junit.framework.TestSuite.run(TestSuite.java:203) [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:313) [java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:199) [java] at org.eclipse.test.UITestApplication$3.run(UITestApplication.java:188) [java] at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) [java] at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118) [java] at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2872) [java] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2531) [java] at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570) [java] at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534) [java] at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306) [java] at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) [java] at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) [java] Exception in org.eclipse.ui.internal.registry.UIExtensionTracker$2.doAdd: java.lang.NullPointerException [java] at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:131) [java] at org.eclipse.test.UITestApplication.run(UITestApplication.java:58) [java] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156) [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:316) [java] at org.eclipse.core.launcher.Main.basicRun(Main.java:269) [java] at org.eclipse.core.launcher.Main.run(Main.java:948) [java] at org.eclipse.core.launcher.Main.main(Main.java:932) [java] testActionSets: tearDown... [java] ----- testActionSetPartAssociations [java] testActionSetPartAssociations: setUp... [java] !ENTRY org.eclipse.ui 4 4 2005-04-13 13:18:44.184 [java] !MESSAGE Exception in org.eclipse.ui.internal.registry.UIExtensionTracker$2.doAdd: java.lang.NullPointerException [java] !ENTRY org.eclipse.ui 4 4 2005-04-13 13:18:44.184 [java] !MESSAGE Exception in org.eclipse.ui.internal.registry.UIExtensionTracker$2.doAdd: java.lang.NullPointerException [java] !STACK 0 [java] java.lang.NullPointerException [java] at org.eclipse.ui.internal.WorkbenchWindow$1.addExtension(WorkbenchWindow.java:404) [java] at org.eclipse.ui.internal.registry.UIExtensionTracker$2.run(UIExtensionTracker.java:58) [java] at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:150) [java] at org.eclipse.ui.internal.UISynchronizer$1.run(UISynchronizer.java:36) [java] at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) [java] at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118) [java] at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2872) [java] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2531) [java] at org.eclipse.ui.tests.util.UITestCase.processEvents(UITestCase.java:155) [java] at org.eclipse.ui.tests.dynamicplugins.DynamicTestCase.getBundle(DynamicTestCase.java:99) [java] at org.eclipse.ui.tests.dynamicplugins.ActionSetTests.testActionSetPartAssociations(ActionSetTests.java:81) [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 junit.framework.TestSuite.runTest(TestSuite.java:208) [java] at junit.framework.TestSuite.run(TestSuite.java:203) [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:313) [java] at org.eclipse.test.EclipseTestRunner.run(EclipseTestRunner.java:199) [java] at org.eclipse.test.UITestApplication$3.run(UITestApplication.java:188) [java] at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) [java] at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:118) [java] at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2872) [java] at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2531) [java] at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1570) [java] at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1534) [java] at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:306) [java] Exception in org.eclipse.ui.internal.registry.UIExtensionTracker$2.doAdd: java.lang.NullPointerException [java] at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) [java] Reason: [java] at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103) [java] Exception in org.eclipse.ui.internal.registry.UIExtensionTracker$2.doAdd: java.lang.NullPointerException [java] at org.eclipse.test.UITestApplication.runApplication(UITestApplication.java:131) [java] at org.eclipse.test.UITestApplication.run(UITestApplication.java:58) [java] at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:228) [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344) [java] at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:156) [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:316) [java] at org.eclipse.core.launcher.Main.basicRun(Main.java:269) [java] at org.eclipse.core.launcher.Main.run(Main.java:948) [java] at org.eclipse.core.launcher.Main.main(Main.java:932) [java] testActionSetPartAssociations: tearDown...

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchWindow.java