This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 414976 - NPE in org.eclipse.e4.core.commands.internal.HandlerServiceHandler.isEnabled()
Summary: NPE in org.eclipse.e4.core.commands.internal.HandlerServiceHandler.isEnabled()
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.4   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: 4.4 M2   Edit
Assignee: Paul Elder CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on: 412681
Blocks:
  Show dependency tree
 
Reported: 2013-08-13 09:43 EDT by Dani Megert CLA
Modified: 2013-08-14 06:03 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2013-08-13 09:43:38 EDT
master

When running in Debug mode and catching NPE, 
org.eclipse.e4.core.commands.internal.HandlerServiceHandler.isEnabled() runs into an NPE here:
IEclipseContext executionContext = contexts.context;
because 'contexts' is 'null'.
Comment 1 Dani Megert CLA 2013-08-13 09:45:30 EDT
Caused by fix for bug 412681.
Comment 2 Paul Elder CLA 2013-08-13 11:04:50 EDT
Happening during startup, when isEnabled is called as part of Command.setHandler(). Putting together a fix.
Comment 3 Paul Elder CLA 2013-08-13 12:09:21 EDT
Fixed pushed to Gerrit for review:

https://git.eclipse.org/r/15440