Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 126113 - Null resource in ResourceUndoContext
Summary: Null resource in ResourceUndoContext
Status: VERIFIED FIXED
Alias: None
Product: EMF Services
Classification: Modeling
Component: Transaction (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal
Target Milestone: ---   Edit
Assignee: Christian Damus CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-01 18:01 EST by Linda Damus CLA
Modified: 2017-02-24 15:10 EST (History)
0 users

See Also:


Attachments
Proposed patch (3.17 KB, patch)
2006-02-01 18:01 EST, Linda Damus CLA
wayne.beaton: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Linda Damus CLA 2006-02-01 18:01:17 EST
The Set returned by ResourceUndoContext.getAffectedResrouces(List notifications) may contain a null entry if any of the notifications pertain to objects that do not have a resource. This is likely to cause NPEs in client code.
Comment 1 Linda Damus CLA 2006-02-01 18:01:58 EST
Created attachment 33975 [details]
Proposed patch
Comment 2 Christian Damus CLA 2006-02-01 18:11:28 EST
Applied the proposed patch, plus a JUnit test for the scenario in question.
Comment 3 Nick Boldt CLA 2008-01-28 16:34:59 EST
Move to verified as per bug 206558.