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

Bug 319050

Summary: NPE in HandlerService on Show View (any view)
Product: [Eclipse Project] e4 Reporter: Oleg Besedin <ob1.eclipse>
Component: UIAssignee: Remy Suen <remy.suen>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: P3 CC: daniel_megert, pwebster, remy.suen
Version: 1.0   
Target Milestone: 1.0 RC2   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Compatibility view handling patch v1 none

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.