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

Bug 498035

Summary: ContentPolicy should accept null argument in setAdaptable().
Product: [Tools] GEF Reporter: Tamas Miklossy <miklossy>
Component: GEF MVCAssignee: Tamas Miklossy <miklossy>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0.0   
Target Milestone: 4.1.0 (Neon.1) M1   
Hardware: All   
OS: All   
Whiteboard:

Description Tamas Miklossy CLA 2016-07-18 03:47:09 EDT
When disposing the Content Policy's host part, setAdaptable will be called with a null argument. This currently leads to a IllegalArgumentException.
Comment 1 Tamas Miklossy CLA 2016-07-18 04:44:39 EDT
I pushed the following fix to R4_0_maintenance and master branches:

[498035] Allow null argument in ContentPolicy's setAdaptable() method.

- Avoid IllegalStateException when disposing: in this case the setAdaptable() method will be called with a null argument.
- Modify the IAdaptable documentation within the gef4.common and increase its version number from 1.0.0 to 1.0.1 to reflect the changes.