Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330692

Summary: [Compatibility] NPE thrown when showing view with secondary id and an incorrect view id
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact: Remy Suen <remy.suen>
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 4.1 M4   
Hardware: All   
OS: All   
Whiteboard:

Description Remy Suen CLA 2010-11-19 12:57:47 EST
Caused by: java.lang.NullPointerException
	at org.eclipse.ui.internal.WorkbenchPage.busyShowView(WorkbenchPage.java:678)
	at org.eclipse.ui.internal.WorkbenchPage$7.run(WorkbenchPage.java:2762)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2759)
	at org.eclipse.ui.internal.WorkbenchPage.showView(WorkbenchPage.java:2735)
	at org.eclipse.ui.handlers.ShowViewHandler.openView(ShowViewHandler.java:126)
	at org.eclipse.ui.handlers.ShowViewHandler.openOther(ShowViewHandler.java:99)
	at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:67)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:58)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:618)
	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:52)
	... 36 more
Comment 1 Remy Suen CLA 2010-11-19 13:03:28 EST
Fixed in CVS HEAD. If the view id that's passed in is invalid, we will now throw a PartInitException.