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

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Merks CLA 2010-09-07 12:45:37 EDT
+++ This bug was initially created as a clone of Bug #315753 +++

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 Ed Merks CLA 2010-09-07 12:48:38 EDT
The fix has been committed to CVS for 2.7.
Comment 2 Ed Merks CLA 2010-11-05 05:41:35 EDT
The fix is available in the latest build for the stream.