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

Bug 341616

Summary: SystemResourceSelectionForm needs to check whether selected is an IAdaptable
Product: [Tools] Target Management Reporter: David McKnight <dmcknigh>
Component: RSEAssignee: David McKnight <dmcknigh>
Status: RESOLVED FIXED QA Contact: Martin Oberhuber <mober.at+eclipse>
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.3 M7   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 341619    
Attachments:
Description Flags
patch to check for IAdaptable none

Description David McKnight CLA 2011-04-01 09:14:30 EDT
In SystemResourceSelectionForm.selectionChanged() the following is called:

 ISystemViewElementAdapter elementAdapter = (ISystemViewElementAdapter)((IAdaptable)selectedObject).getAdapter(ISystemViewElementAdapter.class);

The code assumes selectedOject is an IAdaptable but that might not always be the case.
Comment 1 David McKnight CLA 2011-04-01 09:15:41 EDT
Created attachment 192355 [details]
patch to check for IAdaptable
Comment 2 David McKnight CLA 2011-04-01 09:40:47 EDT
I've committed the fix to cvs.