Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315753 - getReferenceValue returns null
Summary: getReferenceValue returns null
Status: CLOSED FIXED
Alias: None
Product: EMF
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Ed Merks CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 324672
  Show dependency tree
 
Reported: 2010-06-04 07:48 EDT by Koen Yskout CLA
Modified: 2010-11-05 05:41 EDT (History)
1 user (show)

See Also:


Attachments
A test case that exhibits the bug and shows a workaround (3.71 KB, text/x-java)
2010-06-04 07:50 EDT, Koen Yskout CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Koen Yskout CLA 2010-06-04 07:48:48 EDT
Build Identifier: 20100527-0614

When loading a ChangeDescription from a file, the objects that are used in a change of a reference value (modeled by feature referenceValue in FeatureChange) are not returned by getReferenceValue().

The cause is that the 'feature' field of FeatureChange may not have been initialized when getReferenceValue() is called; only the 'featureName' feature has been set. This causes basicGetReferenceValue to return null, and not the actual object (or proxy object).

Reproducible: Always

Steps to Reproduce:
See the attached test case
Comment 1 Koen Yskout CLA 2010-06-04 07:50:02 EDT
Created attachment 171088 [details]
A test case that exhibits the bug and shows a workaround
Comment 2 Ed Merks CLA 2010-09-04 13:35:49 EDT
The fix is committed to CVS for 2.6.
Comment 3 Ed Merks CLA 2010-11-05 05:41:30 EDT
The fix is available in the latest build for the stream.