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

Bug 361697

Summary: [TMF] Handle potential NPE in command handlers
Product: z_Archived Reporter: Francois Chouinard <fchouinard>
Component: LinuxToolsAssignee: Francois Chouinard <fchouinard>
Status: CLOSED FIXED QA Contact: Francois Chouinard <fchouinard>
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Fix fchouinard: iplog-

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