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

Bug 324672

Summary: [Duplicate] getReferenceValue returns null
Product: [Modeling] EMF Reporter: Ed Merks <Ed.Merks>
Component: CoreAssignee: Ed Merks <Ed.Merks>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3 CC: cyril.jaquier, koen.yskout
Version: 2.7.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 315753    
Bug Blocks:    

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.