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

Bug 494049

Summary: Prevent NPE within AbstractFXInteractionPolicy.
Product: [Tools] GEF Reporter: Matthias Wienand <matthias.wienand>
Component: GEF MVCAssignee: gef-inbox <gef-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 0.2.0   
Target Milestone: 4.0.0 (Neon) RC2   
Hardware: All   
OS: All   
Whiteboard:

Description Matthias Wienand CLA 2016-05-19 12:26:31 EDT
The AbstractFXInteractionPolicy provides two methods that can be used to determine if a policy is responsible for processing a given EventTarget. These methods need to be guarded against the host part being removed from the visual-part-hierarchy or from the viewer, respectively.
Comment 1 Matthias Wienand CLA 2016-05-19 12:29:14 EDT
I added null-checks for the root-part and the viewer to these methods. The code is published on the master branch, therefore, I resolve this ticket as fixed for 4.0.0 RC2.