Bug 48610 - NPE in command support when starting the workbench
Summary: NPE in command support when starting the workbench
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P1 blocker (vote)
Target Milestone: ---   Edit
Assignee: Chris McLaren CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-11 17:25 EST by Tod Creasey CLA
Modified: 2003-12-11 17:42 EST (History)
0 users

See Also:


Attachments
Patch for NPE (812 bytes, patch)
2003-12-11 17:30 EST, Tod Creasey CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tod Creasey CLA 2003-12-11 17:25:52 EST
With the contents of HEAD and all other plugins as binary input running the 
20031211 build you get an NPE starting up the workbench when you run the test 
suites.

Run UITestSuite as a JUnit plug-in test to make this happen.

I had a quick look and will attach the patch for it. I have commited it but it 
should be verified.

java.lang.NullPointerException
	at 
org.eclipse.ui.internal.commands.CompoundCommandHandlerService.update
(CompoundCommandHandlerService.java:106)
	at 
org.eclipse.ui.internal.commands.CompoundCommandHandlerService.addCommandHandle
rService(CompoundCommandHandlerService.java:49)
	at org.eclipse.ui.internal.WorkbenchWindow.<init>
(WorkbenchWindow.java:449)
	at org.eclipse.ui.internal.Workbench.newWorkbenchWindow
(Workbench.java:1088)
	at org.eclipse.ui.internal.Workbench.busyOpenWorkbenchWindow
(Workbench.java:508)
	at org.eclipse.ui.internal.Workbench.access$9(Workbench.java:505)
	at org.eclipse.ui.internal.Workbench$12.run(Workbench.java:1253)
	at org.eclipse.swt.custom.BusyIndicator.showWhile
(BusyIndicator.java:84)
	at org.eclipse.ui.internal.Workbench.openWorkbenchWindow
(Workbench.java:1250)
	at org.eclipse.ui.tests.util.UITestCase.openTestWindow
(UITestCase.java:155)
	at org.eclipse.ui.tests.api.IWorkbenchPartTest.doSetUp
(IWorkbenchPartTest.java:38)
	at org.eclipse.ui.tests.util.UITestCase.setUp(UITestCase.java:105)
	at junit.framework.TestCase.runBare(TestCase.java:125)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:397)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:281)
	at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main
(RemotePluginTestRunner.java:30)
	at org.eclipse.pde.internal.junit.runtime.UITestApplication$1.run
(UITestApplication.java:92)
	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:102)
	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2271)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1979)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1506)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1482)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:246)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:139)
	at org.eclipse.ui.internal.ide.IDEApplication.run
(IDEApplication.java:47)
	at org.eclipse.pde.internal.junit.runtime.UITestApplication.run
(UITestApplication.java:34)
	at org.eclipse.core.internal.runtime.PlatformActivator$1.run
(PlatformActivator.java:242)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:84)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.internal.boot.OSGiBootLoader.basicRun
(OSGiBootLoader.java:239)
	at org.eclipse.core.internal.boot.OSGiBootLoader.run
(OSGiBootLoader.java:665)
	at org.eclipse.core.internal.boot.OSGiBootLoader.run
(OSGiBootLoader.java:652)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:299)
	at org.eclipse.core.launcher.Main.run(Main.java:767)
	at org.eclipse.core.launcher.Main.main(Main.java:601)
Comment 1 Tod Creasey CLA 2003-12-11 17:30:02 EST
Created attachment 7132 [details]
Patch for NPE
Comment 2 Chris McLaren CLA 2003-12-11 17:42:55 EST
fixed