Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 328513 - DomainLoadingStrategy may return null even when model context contains project
Summary: DomainLoadingStrategy may return null even when model context contains project
Status: RESOLVED FIXED
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: JSF Tools (show other bugs)
Version: 3.2.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2.3   Edit
Assignee: Gerry Kessler CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-22 16:21 EDT by Carlin Rogers CLA
Modified: 2010-10-25 16:39 EDT (History)
0 users

See Also:


Attachments

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