| Summary: | NullPointerException in CDONotificationBuilder during Branch Merge | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Pascal Lehmann <pascal.lehmann> | ||||
| Component: | cdo.core | Assignee: | Eike Stepper <stepper> | ||||
| Status: | CLOSED FIXED | QA Contact: | Eike Stepper <stepper> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | cyril.jaquier, erwin, martin.fluegge, michael, stepper | ||||
| Version: | 3.0 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Whiteboard: | offline-12 | ||||||
| Bug Depends on: | 316594 | ||||||
| Bug Blocks: | |||||||
| Attachments: |
|
||||||
|
Description
Pascal Lehmann
Pascal, please provide a "simple" test case. Created attachment 169782 [details]
TestCase
1) The number of lines that you added/changed is smaller than 250. confirmed 2) You are the only author of these changed lines. confirmed 3) You apply the EPL to these changed lines. confirmed I noticed that there are NullPointerException problems with TRANSIENT objects at other points (eg. when trying to get that object from another view, where it is still contained and valid) because some of the fields are nulled. Maybe some of the fields shouldn't be nulled? What is the exact purpose of nulling them? What fields exactly and where? cdoid, view and revision are nulled when an object goes into state TRANSIENT. I think "view" must be nulled. And the (former) revisions can be obtained via InternalCDOTransaction.getFormerRevisions(). Ok, it probably does make sense to null those fields since the object isn't contained in that view anymore, and therefore doesn't have any valid revision and cdoid. Committed test case. The test is passing, so I assume that one of our other fixes to invalidation handling and notifications has fixed this issue, as well. Resolving FIXED and please reopen if you don't agree. Reopening because I realized that the test does *not* pass on Hudson. At home I can not reproduce this issue. It's strange because I've had the very same effect with a different test case yesterday: ChangeSubscriptionTest.testInvalidationWithDeltas_SubBranch() I need help to reproduce this in a debugging environment! Should be fixed with bug 316594... Rebasing all outstanding 3.0 problem reports to version 3.0.1 Hi guys, I tried to reproduce the NPE several times but was neither und HEAD nor on R3_0_Maintenance successful. The test either passes or failes with the ObjectNotFoundException mentioned in Bug 316594. Eike, maybe the Exception you mentioned in comment #10 was the ONFE (which always occurs on Hudson) and not the NPE? Pascal, could you check whether you are still able to reproduce the exception. Maybe it is already fixed due to another fix, as Eike assumed before. If we cannot reproduce this I would suggest closing this one as WORKSFORME. Hi Martin, Eike Sorry for the confusion, I provided a fix for the NPE along with a patch for bug #306710 (comment9 and 10) and forgot to mention it here. Since the NPE is fixed I guess this bug can be closed. Thank you guys. Available in 3.0 GA: http://download.eclipse.org/modeling/emf/cdo/updates/3.0-releases/ |