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

Bug 328513

Summary: DomainLoadingStrategy may return null even when model context contains project
Product: [WebTools] Java Server Faces Reporter: Carlin Rogers <carlin.rogers>
Component: JSF ToolsAssignee: Gerry Kessler <gerry.kessler>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2.2   
Target Milestone: 3.2.3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Carlin Rogers CLA 2010-10-22 16:21:01 EDT
In stepping through some code for another bug related to memory leaks, I noticed some behavior that doesn't seem correct. The DomainLoadingStrategy.getProject() method uses a call to getAdapter() for the model context. This can return null, even though the context itself does have a reference to the project. Though the interface IMetaDataModelContext does not declare getProject(), the implementations of this interface all seem to have a getProject() method.
Comment 1 Gerry Kessler CLA 2010-10-25 16:39:36 EDT
Checked into HEAD.

The getAdapter() code now correctly returns the project when available.   The project may be null.