Bug 38786 - [Perspectives] NPE in WorkbenchPlugin.createExtension when starting new build for first time
Summary: [Perspectives] NPE in WorkbenchPlugin.createExtension when starting new build...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P2 major (vote)
Target Milestone: 3.0 M2   Edit
Assignee: Simon Arsenault CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-11 12:43 EDT by Knut Radloff CLA
Modified: 2003-06-17 15:20 EDT (History)
1 user (show)

See Also:


Attachments
log file (3.87 KB, text/plain)
2003-06-11 12:44 EDT, Knut Radloff CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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