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

Bug 331685

Summary: Unset context from model if widget creation failed since the context is disposed
Product: [Eclipse Project] e4 Reporter: Remy Suen <remy.suen>
Component: UIAssignee: Remy Suen <remy.suen>
Status: RESOLVED FIXED QA Contact: Eric Moffatt <emoffatt>
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 4.1 M4   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
PartRenderingEngine patch v1 none

Description Remy Suen CLA 2010-12-02 10:51:21 EST
If the renderer fails to create a widget for a given element, it will dispose its created context (if any) prior to returning from the call. If we try to deconstruct the element later, it will fail with an NPE because the context has been disposed and getParent() will return null.
Comment 1 Remy Suen CLA 2010-12-02 10:53:58 EST
Created attachment 184361 [details]
PartRenderingEngine patch v1
Comment 2 Remy Suen CLA 2010-12-02 10:56:32 EST
Fix released to CVS HEAD.