Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 319050 - NPE in HandlerService on Show View (any view)
Summary: NPE in HandlerService on Show View (any view)
Status: VERIFIED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: 1.0 RC2   Edit
Assignee: Remy Suen CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 317204 319239 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-07-06 16:05 EDT by Oleg Besedin CLA
Modified: 2010-07-13 08:26 EDT (History)
3 users (show)

See Also:


Attachments
Compatibility view handling patch v1 (12.71 KB, patch)
2010-07-08 09:03 EDT, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Oleg Besedin CLA 2010-07-06 16:05:21 EDT
Menu Window -> Show View -> select any view NPEs:

Caused by: java.lang.NullPointerException
	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:122)
	at org.eclipse.ui.handlers.ShowViewHandler.execute(ShowViewHandler.java:55)
	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
Comment 1 Dani Megert CLA 2010-07-08 05:55:58 EDT
Basically a blocker since I cannot open additional views.
Comment 2 Dani Megert CLA 2010-07-08 05:58:30 EDT
It's a blocker because Show View > Other... also doesn't work (see bug 319239).
Comment 3 Paul Webster CLA 2010-07-08 06:07:31 EDT
You can use CTRL+3 to open additional views.

PW
Comment 4 Dani Megert CLA 2010-07-08 07:24:34 EDT
>You can use CTRL+3 to open additional views.
Thanks, that works.
Comment 5 Remy Suen CLA 2010-07-08 07:57:56 EDT
*** Bug 319239 has been marked as a duplicate of this bug. ***
Comment 6 Remy Suen CLA 2010-07-08 09:03:22 EDT
Created attachment 173766 [details]
Compatibility view handling patch v1

The LegacyIDE.e4xmi file has been updated with the 'e4.show.view' command/handler.

org.eclipse.ui.handlers.ShowViewHandler is using 3.x code again.

The ViewRegistry has been updated to process view categories.

Paul, could you take a gander and then deliver this?
Comment 7 Paul Webster CLA 2010-07-08 14:52:34 EDT
With a minor NPE check.

PW
Comment 8 Remy Suen CLA 2010-07-08 17:21:44 EDT
*** Bug 317204 has been marked as a duplicate of this bug. ***
Comment 9 Dani Megert CLA 2010-07-13 08:26:45 EDT
Verified in SDK 4.0 - I20100712-2029.