| Summary: | NullPointerException after deleting a resource | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Eike Stepper <stepper> | ||||
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> | ||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | lindeman1966, Michal.Tkacz, rumburak.eclipse | ||||
| Version: | 4.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Eike Stepper
Added Bugzilla_322754_Test Committed to HEAD Eike, any idea if this can be solved easily? Finally I found out what seems to happen: You're deleting a resource but are still having some resources with objects that point to objects in the deleted resource. Please compare Bugzilla_322754_Test.testResourceDeleteWithDanglingReferences(). I'll attach a patch that makes this situation more obvious by throwing a DanglingReferenceException. The exception message (object is not contained in a resource" is not 100% correct, as the object is contained by a resource, but both the resource and the object are TRANSIENT. Created attachment 182097 [details]
Patch v1
Committed to HEAD. Please reopen if you think I've misunderstood or if you are able to propose a better solution. Available in R20110608-1407 |