Community
Participate
Working Groups
Build Identifier: 20100917-0705 After upgrading to Helios SR1, I get a NullPointerException when loading an EMF change description. I think this is related to bug 315753 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=315753), which was recently fixed. I attached a test case that demonstrates the bug. The NPE is caused by the line feature = ((EObjectToChangesMapEntryImpl)eContainer()).getTypedKey().eClass().getEStructuralFeature(featureName); in getFeature() from FeatureChangeImpl. Apparently, the FeatureChange's container (when using the particular setup from the test case) does not have its (typed) key set (yet?) at the time setReferenceValue() is called when loading the XMI, so getTypedKey() returns null. Skipping this line while the key is not set seems to resolve the issue. I don't think there is an easy workaround. Reproducible: Always Steps to Reproduce: See the attached test code.
Created attachment 179734 [details] Test case demonstrating the bug
Created attachment 179875 [details] Changes to address the issue We should always have been guarding those calls but didn't notice until now. :-(
The fix is committed to CVS for 2.7.
Fixed.
The fixes are available in a published build.
Try again to resolve as fixed (and available in a build).
Oh, I guess I have to close them!