Bug 38786

Summary: [Perspectives] NPE in WorkbenchPlugin.createExtension when starting new build for first time
Product: [Eclipse Project] Platform Reporter: Knut Radloff <knut_radloff>
Component: UIAssignee: Simon Arsenault <simon_arsenault>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P2 CC: dejan
Version: 2.1   
Target Milestone: 3.0 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:
Attachments:
Description Flags
log file none

Description Knut Radloff CLA 2003-06-11 12:43:20 EDT
build 20030611

When I first started the workbench with the new build (changing from 20030605) 
I got an error message about update/install perspective no being restored 
because of errors. I don't recall having this perspective open.
The following was in the command line console: 
Could not create view: 'org.eclipse.update.ui.ConfigurationView'.
Could not create view: 'org.eclipse.update.ui.ItemsView'.
Could not create view: 'org.eclipse.update.ui.UpdatesView'.
Could not create view: 'org.eclipse.update.ui.DetailsView'.
Unhandled exception caught in event loop.
Reason:
java.lang.NullPointerException
Comment 1 Knut Radloff CLA 2003-06-11 12:44:06 EDT
Created attachment 5164 [details]
log file
Comment 2 Knut Radloff CLA 2003-06-11 13:03:02 EDT
I went back to the 0605 build, opened the Install/Update perspective and then 
started 0611. I got the same "Cannot restore perspective" dialog when starting 
Eclipse with the 0611 build.
When I click on the perspective icon that used to be the Install/Update 
perspective (now just an empty "window" icon) I get the same error dialog 
again. At this point the error messages I quote above, except for the NPE, are 
printed in the (Windows) console. I cannot reproduce the NPE.
Comment 3 Nick Edgar CLA 2003-06-11 14:10:29 EDT
The install/update perspective is gone as of M1.  Looks like the workbench 
could definitely be handling this better.
Comment 4 Simon Arsenault CLA 2003-06-17 15:20:23 EDT
Fixed the code that caused the NPE (was able to reproduce it).

How the workbench handles missing perspectives, views, editors, actions, etc 
definitions (because a plugin is missing or invalid), should be improved. I see 
no reason why we want to display the ids to the users...it means probably 
nothing to them. I think providing a message along indicates some 
perspectives/views/editors/actions were not restored because they no longer 
exist in the application (or something along those lines). We could add more 
details information in the .log file. I've opened a new bug report to capture 
this problem that has yet to be done. See bug 39037