Bug 563592 - Queries on deleted representation descriptor should not throw exception
Summary: Queries on deleted representation descriptor should not throw exception
Status: CLOSED FIXED
Alias: None
Product: Sirius
Classification: Modeling
Component: Core (show other bugs)
Version: 6.3.0   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: 6.3.1   Edit
Assignee: Steve Monnier CLA
QA Contact: Florian Barbin CLA
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2020-05-26 10:21 EDT by Steve Monnier CLA
Modified: 2020-06-19 10:22 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Monnier CLA 2020-05-26 10:21:23 EDT
DRepresentationDescriptorQuery provides a method isRepresentationReachable that checks that the representation is reachable. This was initially used to detect broken representation descriptors. However, when having Sirius set to create representation in dedicated resource (.srm file) if this query is used after the representation is deleted it throws an NPE (because the .srm resource is not there anymore).
Comment 1 Eclipse Genie CLA 2020-05-26 10:26:55 EDT
New Gerrit change created: https://git.eclipse.org/r/163616
Comment 3 Steve Monnier CLA 2020-05-27 03:32:23 EDT
Validation: with only sirius, I have only been able to reproduce the issue programmatically (see JUnit). Consider this bugzilla a technical issue, the full scenario will be validated elsewhere.
Comment 4 Pierre-Charles David CLA 2020-06-19 10:22:34 EDT
Available in Sirius 6.3.1 (part of Eclipse 2020-06). See https://wiki.eclipse.org/Sirius/6.3.1 for details on the release.