Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 331685 - Unset context from model if widget creation failed since the context is disposed
Summary: Unset context from model if widget creation failed since the context is disposed
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 1.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.1 M4   Edit
Assignee: Remy Suen CLA
QA Contact: Eric Moffatt CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-02 10:51 EST by Remy Suen CLA
Modified: 2010-12-02 10:56 EST (History)
0 users

See Also:


Attachments
PartRenderingEngine patch v1 (3.06 KB, patch)
2010-12-02 10:53 EST, Remy Suen CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.