Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 361697 - [TMF] Handle potential NPE in command handlers
Summary: [TMF] Handle potential NPE in command handlers
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: LinuxTools (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Francois Chouinard CLA
QA Contact: Francois Chouinard CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-21 13:40 EDT by Francois Chouinard CLA
Modified: 2022-01-13 14:52 EST (History)
0 users

See Also:


Attachments
Fix (16.87 KB, patch)
2011-10-21 13:45 EDT, Francois Chouinard CLA
fchouinard: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francois Chouinard CLA 2011-10-21 13:40:11 EDT
By default, the project command handlers expect to be invoked when navigating when a valid selection is in effect.

In some cases, their "isEnabled()" method is called by the platform even if not applicable to the context. This causes an NPE that is quietly handled by the platform but is nonetheless trapped if one sets a breakpoint on NullPointerException in the Java debugger.
Comment 1 Francois Chouinard CLA 2011-10-21 13:45:26 EDT
Created attachment 205751 [details]
Fix

Add NPE check in command handlers
Comment 2 Francois Chouinard CLA 2011-10-21 13:48:37 EDT
Patch committed in master and stable-0.9
Comment 3 Francois Chouinard CLA 2012-03-26 13:55:31 EDT
Delivered in 0.9.0